changeset 39658:c20861b65688

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
author Pulkit Goyal <pulkit@yandex-team.ru>
date Sun, 16 Sep 2018 20:20:59 +0530
parents 2b9f315a4217
children 19f701387ed5
files tests/test-hgweb-non-interactive.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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