Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c520edc commit da94b9eCopy full SHA for da94b9e
1 file changed
Lib/test/test_selectors.py
@@ -5,7 +5,7 @@
5
import signal
6
import socket
7
from test import support
8
-from time import sleep, perf_counter
+from time import sleep, perf_counter, get_clock_info
9
import unittest
10
import unittest.mock
11
try:
@@ -377,7 +377,10 @@ def test_timeout_rounding(self):
377
t0 = perf_counter()
378
s.select(timeout)
379
dt = perf_counter() - t0
380
- self.assertGreaterEqual(dt, timeout)
+ clock = get_clock_info('perf_counter')
381
+ self.assertGreaterEqual(dt, timeout,
382
+ "%.30f < %.30f ; clock=%s"
383
+ % (dt, timeout, clock))
384
385
386
class ScalableSelectorMixIn:
0 commit comments