[issue20910] Make sleep configurable in tests
Zachary Ware
report at bugs.python.org
Fri Mar 14 15:45:18 CET 2014
Zachary Ware added the comment:
Victor Stinner wrote:
> Is it a virtual machine or a physical machine? Was your Windows busy?
> Did you run tests in parallel?
Physical, not really other than the tests, and I ran with -j0 (on a machine with 2 single core CPUs).
I'm not sure what I think of the TEST_SLEEP/TEST_SHORT_SLEEP scheme, but I do like the idea behind support.check_time_delta. I've come up with a couple of alternative ideas (which may or may not actually be worth anything :) in the same vein as the TEST_SLEEP constants:
1) define a support.sleep function that multiplies the value given by some definable constant (default of 1) before passing the value to time.sleep.
2) define a support.sleep_until function, which would sleep for a given interval repeatedly until some condition is satisfied or a timeout is reached.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20910>
_______________________________________
More information about the Python-bugs-list
mailing list