Author: Ronny Pfannschmidt <[email protected]>
Branch:
Changeset: r246:7720a0e701dc
Date: 2014-03-08 09:28 +0100
http://bitbucket.org/pypy/pyrepl/changeset/7720a0e701dc/
Log: Merged in msabramo/pyrepl/fix_setup_test_basic_python3 (pull request
#9)
testing/test_functional.py: Use sys.stdout.buffer for Python 3
instead of sys.stdout
diff --git a/testing/test_functional.py b/testing/test_functional.py
--- a/testing/test_functional.py
+++ b/testing/test_functional.py
@@ -13,7 +13,10 @@
except SyntaxError:
pytest.skip('pexpect wont work on py3k')
child = pexpect.spawn(sys.executable, ['-S'], timeout=10)
- child.logfile = sys.stdout
+ if sys.version_info >= (3, ):
+ child.logfile = sys.stdout.buffer
+ else:
+ child.logfile = sys.stdout
child.sendline('from pyrepl.python_reader import main')
child.sendline('main()')
return child
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit