Patchwork D10472: tests: make test-archive.t pass on py3.9

login
register
mail settings
Submitter phabricator
Date April 19, 2021, 11:55 p.m.
Message ID <differential-rev-PHID-DREV-risgq3zn4jlaygeummn4-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48789/
State Superseded
Headers show

Comments

phabricator - April 19, 2021, 11:55 p.m.
martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Something got stricter at parsing URL query parameters and now the
  parameters need to be separated by "&"; ";" is no longer allowed.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

REVISION DETAIL
  https://phab.mercurial-scm.org/D10472

AFFECTED FILES
  tests/test-archive.t

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/test-archive.t b/tests/test-archive.t
--- a/tests/test-archive.t
+++ b/tests/test-archive.t
@@ -334,10 +334,10 @@ 
   >     pass
   > if len(sys.argv) <= 3:
   >     node, archive = sys.argv[1:]
-  >     requeststr = 'cmd=archive;node=%s;type=%s' % (node, archive)
+  >     requeststr = 'cmd=archive&node=%s&type=%s' % (node, archive)
   > else:
   >     node, archive, file = sys.argv[1:]
-  >     requeststr = 'cmd=archive;node=%s;type=%s;file=%s' % (node, archive, file)
+  >     requeststr = 'cmd=archive&node=%s&type=%s&file=%s' % (node, archive, file)
   > try:
   >     stdout = sys.stdout.buffer
   > except AttributeError: