[pypy-issue] [issue1030] cpython test_subprocess.py fails on Windows

Garen Parham tracker at bugs.pypy.org
Mon Jan 30 03:17:37 CET 2012


New submission from Garen Parham <garen.p at gmail.com>:

test_subprocess.py in lib-python/modified-2.7/ fails on current trunk of pypy 
like so:

======================================================================
ERROR: test_leaking_fds_on_error (__main__.ProcessTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "U:\vcs\hg\bins\pypy-c-jit-51616-5aa09e8483d3-win32\lib-python\modified-
2.7\test\test_subprocess.py", line 579, in test_leaking_fds_on_error
    raise c.exception
WindowsError: Error

======================================================================
ERROR: test_no_leaking (__main__.ProcessTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "U:\vcs\hg\bins\pypy-c-jit-51616-5aa09e8483d3-win32\lib-python\modified-
2.7\test\test_subprocess.py", line 511, in test_no_leaking
    data = p.communicate(b"lime")[0]
  File "U:\vcs\hg\bins\pypy-c-jit-51616-5aa09e8483d3-win32\lib-python\modified-
2.7\subprocess.py", line 740, in communicate
    return self._communicate(input)
  File "U:\vcs\hg\bins\pypy-c-jit-51616-5aa09e8483d3-win32\lib-python\modified-
2.7\subprocess.py", line 975, in _communicate
    stderr = stderr[0]
IndexError: list index out of range

----------------------------------------------------------------------
Ran 115 tests in 6.740s

FAILED (errors=2, skipped=58)
Traceback (most recent call last):
  File "app_main.py", line 51, in run_toplevel
  File "U:\vcs\hg\bins\pypy-c-jit-51616-5aa09e8483d3-win32\lib-python\modified-
2.7\test\test_subprocess.py", line 974, in <module>
    test_main()
  File "U:\vcs\hg\bins\pypy-c-jit-51616-5aa09e8483d3-win32\lib-python\modified-
2.7\test\test_subprocess.py", line 970, in test_main
    test_support.run_unittest(*unit_tests)
  File "U:\vcs\hg\bins\pypy-c-jit-51616-5aa09e8483d3-win32\lib-python\modified-
2.7\test\test_support.py", line 1138, in run_unittest
    _run_suite(suite)
  File "U:\vcs\hg\bins\pypy-c-jit-51616-5aa09e8483d3-win32\lib-python\modified-
2.7\test\test_support.py", line 1092, in _run_suite
    raise TestFailed(err)
TestFailed: multiple errors occurred

When run against the newer test_subprocess.py shipped with cpython 2.7.2.5, more 
test failures appear.  Many of the new test failures are also present when run 
under Linux, filed separately here:

https://bugs.pypy.org/issue1029

Hope that helps.

----------
messages: 3838
nosy: Garen, pypy-issue
priority: bug
status: unread
title: cpython test_subprocess.py fails on Windows

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1030>
________________________________________


More information about the pypy-issue mailing list