py3: add b'' prefixes in tests/test-hgweb-non-interactive.t
authorPulkit Goyal <pulkit@yandex-team.ru>
Sun, 16 Sep 2018 20:20:59 +0530
changeset 39658 c20861b65688
parent 39657 2b9f315a4217
child 39659 19f701387ed5
py3: add b'' prefixes in tests/test-hgweb-non-interactive.t # skip-blame because just b'' prefix Differential Revision: https://phab.mercurial-scm.org/D4609
tests/test-hgweb-non-interactive.t
--- a/tests/test-hgweb-non-interactive.t	Sun Sep 16 19:58:01 2018 +0530
+++ b/tests/test-hgweb-non-interactive.t	Sun Sep 16 20:20:59 2018 +0530
@@ -65,7 +65,7 @@
   >     'SERVER_PROTOCOL': 'HTTP/1.0'
   > }
   > 
-  > i = hgweb('.')
+  > i = hgweb(b'.')
   > for c in i(env, startrsp):
   >     pass
   > print('---- ERRORS')
@@ -74,7 +74,7 @@
   > print(sorted([x for x in os.environ if x.startswith('wsgi')]))
   > print('---- request.ENVIRON wsgi variables')
   > with i._obtainrepo() as repo:
-  >     print(sorted([x for x in repo.ui.environ if x.startswith('wsgi')]))
+  >     print(sorted([x for x in repo.ui.environ if x.startswith(b'wsgi')]))
   > EOF
   $ $PYTHON request.py
   ---- STATUS