Commit 94e6e809 authored by Jason Madden's avatar Jason Madden

Python3 on certain platform (not OS X) raised 'ValueError: cant have...

Python3 on certain platform (not OS X) raised 'ValueError: cant have unbuffered text I/O', so line buffer it.
parent f096303e
...@@ -86,7 +86,8 @@ class Test(greentest.TestCase): ...@@ -86,7 +86,8 @@ class Test(greentest.TestCase):
'sys.stdout.flush();' 'sys.stdout.flush();'
'sys.stdout.write("\\nline6");'], 'sys.stdout.write("\\nline6");'],
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
universal_newlines=1) universal_newlines=1,
bufsize=1)
try: try:
stdout = p.stdout.read() stdout = p.stdout.read()
if python_universal_newlines: if python_universal_newlines:
...@@ -113,7 +114,8 @@ class Test(greentest.TestCase): ...@@ -113,7 +114,8 @@ class Test(greentest.TestCase):
'sys.stdout.flush();' 'sys.stdout.flush();'
'sys.stdout.write("\\nline6");'], 'sys.stdout.write("\\nline6");'],
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
universal_newlines=1) universal_newlines=1,
bufsize=1)
try: try:
stdout = p.stdout.read() stdout = p.stdout.read()
if python_universal_newlines: if python_universal_newlines:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment