Skip to content

Commit

Permalink
gh-108277: test_os tolerates 1 ms diff for timerfd (#110661)
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Oct 11, 2023
1 parent e07c37c commit 7ca4aaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/test/test_os.py
Expand Up @@ -3929,8 +3929,8 @@ def test_eventfd_select(self):
@unittest.skipUnless(hasattr(os, 'timerfd_create'), 'requires os.timerfd_create')
@support.requires_linux_version(2, 6, 30)
class TimerfdTests(unittest.TestCase):
# Tolerate a difference of 50 us
CLOCK_RES_NS = 50_000
# Tolerate a difference of 1 ms
CLOCK_RES_NS = 1_000_000
CLOCK_RES = CLOCK_RES_NS * 1e-9

def timerfd_create(self, *args, **kwargs):
Expand Down

0 comments on commit 7ca4aaf

Please sign in to comment.