Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r65093:c8a3a92d0dd6
Date: 2013-06-29 14:24 +0200
http://bitbucket.org/pypy/pypy/changeset/c8a3a92d0dd6/
Log: Fix module.test_lib_pypy.pyrepl.test_wishes.
diff --git a/lib_pypy/pyrepl/reader.py b/lib_pypy/pyrepl/reader.py
--- a/lib_pypy/pyrepl/reader.py
+++ b/lib_pypy/pyrepl/reader.py
@@ -55,6 +55,11 @@
else:
return c
+if 'a'[0] == 'a':
+ # When running tests with python2, bytes characters are bytes.
+ def _my_unctrl(c, uc=_my_unctrl):
+ return uc(ord(c))
+
def disp_str(buffer, join=''.join, uc=_my_unctrl):
""" disp_str(buffer:string) -> (string, [int])
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit