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
[Windows] test_subprocess: test_close_fds_with_stdio() has a race condition #80884
Comments
|
test_subprocess: test_close_fds_with_stdio() pass when run alone, but fail when run in parallel. I tagged the issue as "easy" for new contributors to Python. If someone is interested to work on this issue, please contact me in private. https://buildbot.python.org/all/#/builders/3/builds/2446 I can reproduce the issue. The test pass when run alone:
---------------------------------------------------------------------- Ran 1 test in 0.302s OK == Tests result: SUCCESS == 1 test OK. Total duration: 391 ms But the test fails when run in parallel: > python -m test test_subprocess -m test_close_fds_with_stdio -F -j4
Running Debug|x64 interpreter...
Run tests in parallel using 4 child processes
0:00:01 [ 1/1] test_subprocess failed
test test_subprocess failed -- Traceback (most recent call last):
File "C:\vstinner\python\3.7\lib\test\test_subprocess.py", line 2930, in test_close_fds_with_stdio
self.assertEqual(p.returncode, 1)
AssertionError: 0 != 1
0:00:01 [ 2/1] test_subprocess passed
0:00:01 [ 3/2] test_subprocess failed
test test_subprocess failed -- Traceback (most recent call last):
File "C:\vstinner\python\3.7\lib\test\test_subprocess.py", line 2930, in test_close_fds_with_stdio
self.assertEqual(p.returncode, 1)
AssertionError: 0 != 1
0:00:01 [ 4/3] test_subprocess failed
test test_subprocess failed -- Traceback (most recent call last):
File "C:\vstinner\python\3.7\lib\test\test_subprocess.py", line 2942, in test_close_fds_with_stdio
self.assertEqual(p.returncode, 1)
AssertionError: 0 != 1
0:00:02 [ 5/3] test_subprocess passed
0:00:02 [ 6/3] test_subprocess passed== Tests result: FAILURE == 3 tests OK. 3 tests failed: Total duration: 2 sec 313 ms |
|
It looks like this has been popping up more and might be the cause of recent buildbot failures. |
|
3 years later, it's still not fixed. I removed the "easy" tag. |
|
I didn't see this failure recently. I close the issue. |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

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: