Kaydet (Commit) 240cae7d authored tarafından Victor Stinner's avatar Victor Stinner

(Merge 3.3) Issue #20311: Try to fix the unit test, use time.monotonic()

instead of time.perf_counter()
......@@ -260,9 +260,9 @@ class TestEPoll(unittest.TestCase):
epoll = select.epoll()
self.addCleanup(epoll.close)
for timeout in (1e-2, 1e-3, 1e-4):
t0 = time.perf_counter()
t0 = time.monotonic()
epoll.poll(timeout)
dt = time.perf_counter() - t0
dt = time.monotonic() - t0
self.assertGreaterEqual(dt, timeout)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment