diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-10-13 03:43:40 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-10-13 03:43:40 +0000 |
commit | a053c22039664f363a57c4c32c2789038ef0fd10 (patch) | |
tree | 9009f2006924fe1f8daace5ace4241ce5e179363 /Python/pythonrun.c | |
parent | 248542a4a73a81c50e3f62087051ec4bd3d456ff (diff) | |
download | cpython-a053c22039664f363a57c4c32c2789038ef0fd10.tar.gz |
Kill several problems at once: test_poll() failed sometimes for me.
Turns out the mysterious "expected output" file contained exactly N dots,
because test_poll() has a loop that *usually* went around N times,
printing one dot on each loop trip. But there's no guarantee of that,
because the exact value of N depended on the vagaries of scheduling
time.sleep()s across two different processes. So stopped printing dots,
and got rid of the expected output file. Add a loop counter instead,
and verify that the loop goes around at least a couple of times. Also
cut the minimum time needed for this test from 4 seconds to 1.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions