File tree 3 files changed +5
-7
lines changed
3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 84
84
raise unittest .SkipTest ("libasan has a pthread_create() dead lock related to thread+fork" )
85
85
86
86
87
- # gh-110666: Tolerate a difference of 100 ms when comparing timings
87
+ # gh-110666: Tolerate a difference of 1 ms when comparing timings
88
88
# (clock resolution)
89
- CLOCK_RES = 0.100
89
+ CLOCK_RES = 0.001
90
90
91
91
92
92
def latin (s ):
Original file line number Diff line number Diff line change 36
36
from test .support import threading_helper
37
37
38
38
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
43
41
44
42
45
43
def data_file (* filename ):
Original file line number Diff line number Diff line change 9
9
SEC_TO_NS = 10 ** 9
10
10
DAY_TO_SEC = (24 * 60 * 60 )
11
11
# Worst clock resolution: maximum delta between two clock reads.
12
- CLOCK_RES = 0.050
12
+ CLOCK_RES = 0.001
13
13
14
14
15
15
class CAPITest (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments