py3: call hgweb.hgweb() with bytes values
authorPulkit Goyal <pulkit@yandex-team.ru>
Sat, 15 Sep 2018 00:37:20 +0300
changeset 39621 23b749b84b8a
parent 39620 b220851999b5
child 39622 20dbca581727
py3: call hgweb.hgweb() with bytes values # skip-blame because just b'' prefixes I believe this should fix some tests. Differential Revision: https://phab.mercurial-scm.org/D4594
tests/test-extension.t
tests/test-hgweb-commands.t
tests/test-mq.t
tests/test-newercgi.t
tests/test-oldcgi.t
tests/test-push-cgi.t
--- a/tests/test-extension.t	Sat Sep 15 00:24:05 2018 +0300
+++ b/tests/test-extension.t	Sat Sep 15 00:37:20 2018 +0300
@@ -140,7 +140,7 @@
   > from mercurial import demandimport; demandimport.enable()
   > from mercurial.hgweb import hgweb
   > from mercurial.hgweb import wsgicgi
-  > application = hgweb('.', 'test repo')
+  > application = hgweb(b'.', b'test repo')
   > wsgicgi.launch(application)
   > EOF
   $ . "$TESTDIR/cgienv"
--- a/tests/test-hgweb-commands.t	Sat Sep 15 00:24:05 2018 +0300
+++ b/tests/test-hgweb-commands.t	Sat Sep 15 00:37:20 2018 +0300
@@ -2276,7 +2276,7 @@
   > from mercurial import demandimport; demandimport.enable()
   > from mercurial.hgweb import hgweb
   > from mercurial.hgweb import wsgicgi
-  > app = hgweb('.', 'test')
+  > app = hgweb(b'.', b'test')
   > wsgicgi.launch(app)
   > HGWEB
   $ . "$TESTDIR/cgienv"
--- a/tests/test-mq.t	Sat Sep 15 00:24:05 2018 +0300
+++ b/tests/test-mq.t	Sat Sep 15 00:37:20 2018 +0300
@@ -1565,7 +1565,7 @@
   > from mercurial.hgweb import wsgicgi
   > import cgitb
   > cgitb.enable()
-  > app = hgweb('.', 'test')
+  > app = hgweb(b'.', b'test')
   > wsgicgi.launch(app)
   > HGWEB
   $ . "$TESTDIR/cgienv"
--- a/tests/test-newercgi.t	Sat Sep 15 00:24:05 2018 +0300
+++ b/tests/test-newercgi.t	Sat Sep 15 00:37:20 2018 +0300
@@ -16,7 +16,7 @@
   > from mercurial.hgweb import hgweb
   > from mercurial.hgweb import wsgicgi
   > 
-  > application = hgweb("test", "Empty test repository")
+  > application = hgweb(b"test", b"Empty test repository")
   > wsgicgi.launch(application)
   > HGWEB
 
--- a/tests/test-oldcgi.t	Sat Sep 15 00:24:05 2018 +0300
+++ b/tests/test-oldcgi.t	Sat Sep 15 00:37:20 2018 +0300
@@ -14,7 +14,7 @@
   > # sys.path.insert(0, "/path/to/python/lib") # if not a system-wide install
   > from mercurial import hgweb
   > 
-  > h = hgweb.hgweb("test", "Empty test repository")
+  > h = hgweb.hgweb(b"test", b"Empty test repository")
   > h.run()
   > HGWEB
 
--- a/tests/test-push-cgi.t	Sat Sep 15 00:24:05 2018 +0300
+++ b/tests/test-push-cgi.t	Sat Sep 15 00:37:20 2018 +0300
@@ -21,7 +21,7 @@
   > from mercurial import demandimport; demandimport.enable()
   > from mercurial.hgweb import hgweb
   > from mercurial.hgweb import wsgicgi
-  > application = hgweb('.', 'test repository')
+  > application = hgweb(b'.', b'test repository')
   > wsgicgi.launch(application)
   > HGWEB
   $ chmod 755 hgweb.cgi