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
Race condition in tests? #7
Comments
It seems to happen in about half of the time in |
I would imagine that the race is between the subprocess responding to the EOF and the parent process calling read(). If the first read doesn't get everything that the subprocess wrote, then the second read will succeed. Does putting a tiny sleep after |
Yes, that's indeed the case. The first read sometimes just gets |
What about calling |
There seems to be some kind of race condition in the testsuite on both python-3.4 and python-2.7 here on Fedora 21 (it seems to occour more often in python-3.4 though).
This is the log of the tests:
self = <tests.test_spawn.PtyTestCase testMethod=test_spawn_sh>
What could cause these random tests? How can I help debugging it?
The text was updated successfully, but these errors were encountered: