New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_os TestInvalidFD.test_closerange causes test_pipes hang in certain circumstances on linux #50791
Comments
The test sequence "test_ttk_guionly test_os test_pipes" hangs almost Commenting out test_closerange in TestInvalidFD in test_os clears the ====================================================================== Traceback (most recent call last):
File "/home/rdmurray/python/py3k/Lib/test/test_pipes.py", line 23, in
testSimplePipe1
f = t.open(TESTFN, 'w')
File "/home/rdmurray/python/py3k/Lib/pipes.py", line 148, in open
return self.open_w(file)
File "/home/rdmurray/python/py3k/Lib/pipes.py", line 168, in open_w
return os.popen(cmd, 'w')
File "/home/rdmurray/python/py3k/Lib/os.py", line 636, in popen
bufsize=buffering)
File "/home/rdmurray/python/py3k/Lib/subprocess.py", line 646, in __init__
errread, errwrite)
File "/home/rdmurray/python/py3k/Lib/subprocess.py", line 1138, in
_execute_child
os.close(errpipe_read)
OSError: [Errno 9] Bad file descriptor ====================================================================== Traceback (most recent call last):
File "/home/rdmurray/python/py3k/Lib/test/test_pipes.py", line 33, in
testSimplePipe2
self.assertEqual(open(TESTFN2).read(), 'HELLO WORLD #2')
AssertionError: '' != 'HELLO WORLD #2' The first of these appears almost every time, the second one seldom. |
It appears that TestInvalidFD.test_closerange is in fact closing a valid |
Here's another buildbot failure that's probably the same thing: http://www.python.org/dev/buildbot/all/x86%20osx.5%203.x/builds/1220 |
Patch to skip test if it can't get a range of invalid file descriptors |
Oh, nice catch. That patch looks fine. However, I would probably add a |
Applied in r74171 to py3k and r74172 to 3.1. It occurs to me that I should backport this to trunk, so I'm leaving the |
Backported to trunk in r74175, and 2.6 in r74176. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: