8000 gh-108277: test_os tolerates 1 ms diff for timerfd (#110661) · python/cpython@7ca4aaf · GitHub
[go: up one dir, main page]

Skip to content

Commit 7ca4aaf

Browse files
authored
gh-108277: test_os tolerates 1 ms diff for timerfd (#110661)
1 parent e07c37c commit 7ca4aaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_os.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3929,8 +3929,8 @@ def test_eventfd_select(self):
39293929
@unittest.skipUnless(hasattr(os, 'timerfd_create'), 'requires os.timerfd_create')
39303930
@support.requires_linux_version(2, 6, 30)
39313931
class TimerfdTests(unittest.TestCase):
3932-
# Tolerate a difference of 50 us
3933-
CLOCK_RES_NS = 50_000
3932+
# Tolerate a difference of 1 ms
3933+
CLOCK_RES_NS = 1_000_000
39343934
CLOCK_RES = CLOCK_RES_NS * 1e-9
39353935

39363936
def timerfd_create(self, *args, **kwargs):

0 commit comments

Comments
 (0)
0