• Tim Peters's avatar
    Kill several problems at once: test_poll() failed sometimes for me. · 29b6b4f7
    Tim Peters yazdı
    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.
    29b6b4f7
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...