[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

Mark Dickinson report at bugs.python.org
Mon Apr 19 14:24:46 CEST 2010


Mark Dickinson <dickinsm at gmail.com> added the comment:

> test_itimer_virtual assumes that a process must get 0.3s of virtual
> time within 5s of real time. This is not true [...]

I agree it's not a good test, especially when run on machines that are heavily loaded, or on an OS running in VM.  I can't really think of *any* way of reliably testing the amount of virtual time that's passed.  Anyone else?

How about removing just the timing part of the itimer_virtual tests? (Leaving the calls in so that the functionality does at least get exercised.)   Or we could leave the timing in so that the test is still useful on an otherwise lightly-loaded machine, but don't count it as a failure if the test times out without getting a signal.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8424>
_______________________________________


More information about the Python-bugs-list mailing list