Message213649
When relying on the timeout feature of various system APIs (e.g. waiting on a semaphore), there isn't much of an alternative to actually waiting a certain amount of time, and measuring the resulting delay. Other tests in the stdlib do this, which is indeed fragile, but better than not testing at all.
See Victor's recent issue20910, "Make sleep configurable in tests". |
|
Date |
User |
Action |
Args |
2014-03-15 10:27:45 | pitrou | set | recipients:
+ pitrou, vstinner, sbt, schwab |
2014-03-15 10:27:45 | pitrou | set | messageid: <1394879265.2.0.961312612403.issue20934@psf.upfronthosting.co.za> |
2014-03-15 10:27:45 | pitrou | link | issue20934 messages |
2014-03-15 10:27:44 | pitrou | create | |
|