File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 8484 raise unittest .SkipTest ("libasan has a pthread_create() dead lock related to thread+fork" )
8585
8686
87- # gh-110666: Tolerate a difference of 100 ms when comparing timings
87+ # gh-110666: Tolerate a difference of 1 ms when comparing timings
8888# (clock resolution)
89- CLOCK_RES = 0.100
89+ CLOCK_RES = 0.001
9090
9191
9292def latin (s ):
Original file line number Diff line number Diff line change 3636from test .support import threading_helper
3737
3838
39- # Use the maximum known clock resolution (gh-75191, gh-110088): Windows
40- # GetTickCount64() has a resolution of 15.6 ms. Use 50 ms to tolerate rounding
41- # issues.
42- CLOCK_RES = 0.050
39+ # Tolerate 1 ms difference when comparing timings.
40+ CLOCK_RES = 0.001
4341
4442
4543def data_file (* filename ):
Original file line number Diff line number Diff line change 99SEC_TO_NS = 10 ** 9
1010DAY_TO_SEC = (24 * 60 * 60 )
1111# Worst clock resolution: maximum delta between two clock reads.
12- CLOCK_RES = 0.050
12+ CLOCK_RES = 0.001
1313
1414
1515class CAPITest (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments