tests: make test-archive.t pass on py3.9 (issue6504)
authorMartin von Zweigbergk <martinvonz@google.com>
Mon, 19 Apr 2021 16:53:45 -0700
changeset 46978 dc8976cc3a6e
parent 46977 3f87d2af0bd6
child 46979 66cc5f867ddc
tests: make test-archive.t pass on py3.9 (issue6504) Something got stricter at parsing URL query parameters and now the parameters need to be separated by "&"; ";" is no longer allowed. See issue6504 for details. Differential Revision: https://phab.mercurial-scm.org/D10472
tests/test-archive.t
--- a/tests/test-archive.t	Mon Apr 19 12:52:23 2021 -0700
+++ b/tests/test-archive.t	Mon Apr 19 16:53:45 2021 -0700
@@ -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: