tests: make test-archive.t pass on py3.9 (issue6504)
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 21 May 2021 16:03:33 +0000 (12:03 -0400)
committerAndreas Henriksson <andreas@fatal.se>
Thu, 27 Mar 2025 18:23:02 +0000 (19:23 +0100)
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

Origin: upstream, https://www.mercurial-scm.org/repo/hg/rev/dc8976cc3a6e
Bug-Debian: https://bugs.debian.org/986514
Bug-upstream: https://bz.mercurial-scm.org/show_bug.cgi?id=6504

Gbp-Pq: Name python-3.9.2.patch

tests/test-archive.t

index 606c9e2e637291dfc5844b3debfd4e3d98ba2458..384a04a064dc705fc505b7f5c164ad64d1ac8087 100644 (file)
@@ -334,10 +334,10 @@ invalid arch type should give 404
   >     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: