Skip to content
Snippets Groups Projects
Commit f5b322889bde authored by Manuel Jacob's avatar Manuel Jacob
Browse files

py3: decode string in fakeui.warn()

parent 2ea7881bddbc
No related branches found
No related tags found
1 merge request!21Make tests pass on Python 3
......@@ -36,7 +36,11 @@
... def configbool(*args):
... return False
... def warn(self, s):
... print(s)
... if pycompat.ispy3:
... import sys
... print(s.decode(sys.__stdout__.encoding))
... else:
... print(s)
>>> u = fakeui()
>>> audit_git_path(u, b'foo/git~100/wat')
... # doctest: +ELLIPSIS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment