changeset 41346:9448b2e4c9fa

py3: fix test-newcgi.t Differential Revision: https://phab.mercurial-scm.org/D5683
author Augie Fackler <augie@google.com>
date Thu, 24 Jan 2019 15:02:28 -0500
parents 24bef6a99958
children 40787a96fda7
files contrib/python3-whitelist tests/test-newcgi.t
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/python3-whitelist	Thu Jan 24 14:12:00 2019 -0500
+++ b/contrib/python3-whitelist	Thu Jan 24 15:02:28 2019 -0500
@@ -455,6 +455,7 @@
 test-narrow.t
 test-nested-repo.t
 test-newbranch.t
+test-newcgi.t
 test-newercgi.t
 test-nointerrupt.t
 test-obshistory.t
--- a/tests/test-newcgi.t	Thu Jan 24 14:12:00 2019 -0500
+++ b/tests/test-newcgi.t	Thu Jan 24 15:02:28 2019 -0500
@@ -18,7 +18,7 @@
   > from mercurial.hgweb.request import wsgiapplication
   > 
   > def make_web_app():
-  >     return hgweb("test", "Empty test repository")
+  >     return hgweb(b"test", b"Empty test repository")
   > 
   > wsgicgi.launch(wsgiapplication(make_web_app))
   > HGWEB
@@ -44,7 +44,7 @@
   > from mercurial.hgweb.request import wsgiapplication
   > 
   > def make_web_app():
-  >     return hgwebdir("hgweb.config")
+  >     return hgwebdir(b"hgweb.config")
   > 
   > wsgicgi.launch(wsgiapplication(make_web_app))
   > HGWEBDIR