Skip to content
Snippets Groups Projects
Commit b55747ca authored by Matt Harbison's avatar Matt Harbison
Browse files

py3: ensure printing to stdout uses str in test-hgweb-no-request-uri.t

parent b9990353
Branches
Tags
No related merge requests found
......@@ -23,6 +23,7 @@
> hgwebdir,
> )
> from mercurial import (
> encoding,
> util,
> )
> stringio = util.stringio
......@@ -55,7 +56,7 @@
>
> def process(app):
> content = app(env, startrsp)
> sys.stdout.write(output.getvalue())
> sys.stdout.write(''.join(content))
> sys.stdout.write(encoding.strfromlocal(output.getvalue()))
> sys.stdout.write(encoding.strfromlocal(b''.join(content)))
> getattr(content, 'close', lambda : None)()
> print('---- ERRORS')
......@@ -60,6 +61,6 @@
> getattr(content, 'close', lambda : None)()
> print('---- ERRORS')
> print(errors.getvalue())
> print(encoding.strfromlocal(errors.getvalue())) # avoid b'' output diff
>
> output = stringio()
> env['PATH_INFO'] = '/'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment