We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2fe7685 + a53f78f commit 93d369eCopy full SHA for 93d369e
testing/test_functional.py
@@ -13,7 +13,10 @@ def pytest_funcarg__child(request):
13
except SyntaxError:
14
pytest.skip('pexpect wont work on py3k')
15
child = pexpect.spawn(sys.executable, ['-S'], timeout=10)
16
- child.logfile = sys.stdout
+ if sys.version_info >= (3, ):
17
+ child.logfile = sys.stdout.buffer
18
+ else:
19
+ child.logfile = sys.stdout
20
child.sendline('from pyrepl.python_reader import main')
21
child.sendline('main()')
22
return child
0 commit comments