mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-108277: test_os tolerates 1 ms diff for timerfd (#110661)
This commit is contained in:
parent
e07c37cd52
commit
7ca4aafa0e
1 changed files with 2 additions and 2 deletions
|
@ -3929,8 +3929,8 @@ class EventfdTests(unittest.TestCase):
|
|||
@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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue