##// END OF EJS Templates
py3: avoid b'' output in test-hgweb-non-interactive.t...
Matt Harbison -
r39949:8bd589ae default
parent child Browse files
Show More
@@ -12,7 +12,9 b' by the WSGI standard and strictly implem'
12 12 > import sys
13 13 > from mercurial import (
14 14 > dispatch,
15 > encoding,
15 16 > hg,
17 > pycompat,
16 18 > ui as uimod,
17 19 > util,
18 20 > )
@@ -68,13 +70,15 b' by the WSGI standard and strictly implem'
68 70 > i = hgweb(b'.')
69 71 > for c in i(env, startrsp):
70 72 > pass
71 > print('---- ERRORS')
72 > print(errors.getvalue())
73 > sys.stdout.flush()
74 > pycompat.stdout.write(b'---- ERRORS\n')
75 > pycompat.stdout.write(b'%s\n' % errors.getvalue())
73 76 > print('---- OS.ENVIRON wsgi variables')
74 77 > print(sorted([x for x in os.environ if x.startswith('wsgi')]))
75 78 > print('---- request.ENVIRON wsgi variables')
76 79 > with i._obtainrepo() as repo:
77 > print(sorted([x for x in repo.ui.environ if x.startswith(b'wsgi')]))
80 > print(sorted([encoding.strfromlocal(x) for x in repo.ui.environ
81 > if x.startswith(b'wsgi')]))
78 82 > EOF
79 83 $ "$PYTHON" request.py
80 84 ---- STATUS
General Comments 0
You need to be logged in to leave comments. Login now