[Python-checkins] cpython (3.4): Issue #21038: Cleanup test_epoll.py

victor.stinner python-checkins at python.org
Tue Mar 25 12:51:25 CET 2014


http://hg.python.org/cpython/rev/3cd216b56599
changeset:   89973:3cd216b56599
branch:      3.4
parent:      89971:a97dcdee35f9
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Tue Mar 25 12:49:53 2014 +0100
summary:
  Issue #21038: Cleanup test_epoll.py

Remove useless test and unused variables. Initial patch by Andreas Schwab.

files:
  Lib/test/test_epoll.py |  3 ---
  1 files changed, 0 insertions(+), 3 deletions(-)


diff --git a/Lib/test/test_epoll.py b/Lib/test/test_epoll.py
--- a/Lib/test/test_epoll.py
+++ b/Lib/test/test_epoll.py
@@ -174,11 +174,8 @@
         expected.sort()
 
         self.assertEqual(events, expected)
-        self.assertFalse(then - now > 0.01, then - now)
 
-        now = time.time()
         events = ep.poll(timeout=2.1, maxevents=4)
-        then = time.time()
         self.assertFalse(events)
 
         client.send(b"Hello!")

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list