Title: Add support.check_time_delta()
Type: Stage:
Components: Tests Versions: Python 3.5
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: vstinner
Priority: normal Keywords: patch

Created on 2014-03-17 23:23 by vstinner, last changed 2015-10-02 21:07 by vstinner. This issue is now closed.

File name Uploaded Description Edit
check_time_delta.patch vstinner, 2014-03-17 23:23 review
Messages (2)
msg213914 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2014-03-17 23:23
Follow-up of issue #20910: add a support.check_time_delta() function an a --check-time-delta command line option for Lib/test/ By default, the function tolerate a difference of 500 ms for the maximum delta.

The idea is to set the --check-time-delta option on slowest buildbots to tolerate larger difference.

For example, test_time_and_call_at() of test_asyncio takes 2000 ms instead of 100 ms on the "AMD64 OpenIndiana 3.x" buildbot:
msg213917 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2014-03-17 23:25
I ran test_time and test_asyncio on Linux and Windows with --check-time-delta=1e-9 and the tests passed.
Date User Action Args
2015-10-02 21:07:03vstinnersetstatus: open -> closed
resolution: out of date
2014-03-17 23:25:06vstinnersetmessages: + msg213917
2014-03-17 23:23:14vstinnercreate