diff --git a/tests/test-extension.t b/tests/test-extension.t --- a/tests/test-extension.t +++ b/tests/test-extension.t @@ -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 --git a/tests/test-hgweb-commands.t b/tests/test-hgweb-commands.t --- a/tests/test-hgweb-commands.t +++ b/tests/test-hgweb-commands.t @@ -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 --git a/tests/test-mq.t b/tests/test-mq.t --- a/tests/test-mq.t +++ b/tests/test-mq.t @@ -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 --git a/tests/test-newercgi.t b/tests/test-newercgi.t --- a/tests/test-newercgi.t +++ b/tests/test-newercgi.t @@ -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 --git a/tests/test-oldcgi.t b/tests/test-oldcgi.t --- a/tests/test-oldcgi.t +++ b/tests/test-oldcgi.t @@ -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 --git a/tests/test-push-cgi.t b/tests/test-push-cgi.t --- a/tests/test-push-cgi.t +++ b/tests/test-push-cgi.t @@ -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