# HG changeset patch # User Pulkit Goyal # Date 1536961040 -10800 # Node ID 23b749b84b8a8ff233cbd06602d39ad70d88184c # Parent b220851999b5715ceaedee36cdf37350e7bf53b9 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 diff -r b220851999b5 -r 23b749b84b8a tests/test-extension.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" diff -r b220851999b5 -r 23b749b84b8a tests/test-hgweb-commands.t --- 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" diff -r b220851999b5 -r 23b749b84b8a tests/test-mq.t --- 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" diff -r b220851999b5 -r 23b749b84b8a tests/test-newercgi.t --- 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 diff -r b220851999b5 -r 23b749b84b8a tests/test-oldcgi.t --- 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 diff -r b220851999b5 -r 23b749b84b8a tests/test-push-cgi.t --- 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