diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-01-25 13:37:50 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-01-25 13:37:50 (GMT) |
commit | 933209689e8d07e3ce00c68ca26e001b130f0b62 (patch) | |
tree | 91a8bd0bc379c195d906d0253475977679d7e628 /Lib | |
parent | b72e69e52958ca4f381ef1f4a6f2130a7a31f4bf (diff) | |
download | cpython-933209689e8d07e3ce00c68ca26e001b130f0b62.zip cpython-933209689e8d07e3ce00c68ca26e001b130f0b62.tar.gz cpython-933209689e8d07e3ce00c68ca26e001b130f0b62.tar.bz2 |
Issue #20311: Revert 033137c12d88, select.epoll.poll() rounds again the timeout
towards zero
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_epoll.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Lib/test/test_epoll.py b/Lib/test/test_epoll.py index 46d2968..871efb2 100644 --- a/Lib/test/test_epoll.py +++ b/Lib/test/test_epoll.py @@ -217,17 +217,6 @@ class TestEPoll(unittest.TestCase): server.close() ep.unregister(fd) - def test_timeout_rounding(self): - # epoll_wait() has a resolution of 1 millisecond, check if the timeout - # is correctly rounded to the upper bound - epoll = select.epoll() - self.addCleanup(epoll.close) - for timeout in (1e-2, 1e-3, 1e-4): - t0 = time.monotonic() - epoll.poll(timeout) - dt = time.monotonic() - t0 - self.assertGreaterEqual(dt, timeout) - def test_main(): support.run_unittest(TestEPoll) |