[issue9929] subprocess.Popen unbuffered not work

Hirokazu Yamamoto report at bugs.python.org
Tue Oct 19 16:34:33 CEST 2010


Hirokazu Yamamoto <ocean-city at m2.ccsnet.ne.jp> added the comment:

Umm, v2 patch broke test_subprocess. I'll repost v3 patch
after removing "bufsize=0 && universal_newlines" check.

======================================================================
ERROR: test_universal_newlines (__main__.ProcessTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "e:\python-dev\py3k\lib\test\test_subprocess.py", line 422, in test_unive
rsal_newlines
    universal_newlines=1)
  File "e:\python-dev\py3k\lib\subprocess.py", line 621, in __init__
    raise ValueError("cannot use bufsize=0 with universal newlines")
ValueError: cannot use bufsize=0 with universal newlines

======================================================================
ERROR: test_universal_newlines_communicate (__main__.ProcessTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "e:\python-dev\py3k\lib\test\test_subprocess.py", line 442, in test_unive
rsal_newlines_communicate
    universal_newlines=1)
  File "e:\python-dev\py3k\lib\subprocess.py", line 621, in __init__
    raise ValueError("cannot use bufsize=0 with universal newlines")
ValueError: cannot use bufsize=0 with universal newlines

----------
Added file: http://bugs.python.org/file19281/py3k_fix_unbuffered_in_subprocess_v3.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9929>
_______________________________________


More information about the Python-bugs-list mailing list