summaryrefslogtreecommitdiffstats
path: root/Lib/test/eintrdata
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-17 09:49:17 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-03-17 09:49:17 (GMT)
commit0c2fd897772984994c49bec1325e77c04f81cf20 (patch)
tree00bb808ad11533a0b56f63ad091186f2a7510509 /Lib/test/eintrdata
parente010d8f031f0b2e29dd95db61769c524d59a74d2 (diff)
downloadcpython-0c2fd897772984994c49bec1325e77c04f81cf20.zip
cpython-0c2fd897772984994c49bec1325e77c04f81cf20.tar.gz
cpython-0c2fd897772984994c49bec1325e77c04f81cf20.tar.bz2
Revert changeset d927047b1d8eb87738676980a24930d053ba2150
Sorry, it was a mistake, the patch is still under review: issue #23646.
Diffstat (limited to 'Lib/test/eintrdata')
-rw-r--r--Lib/test/eintrdata/eintr_tester.py17
1 files changed, 1 insertions, 16 deletions
diff --git a/Lib/test/eintrdata/eintr_tester.py b/Lib/test/eintrdata/eintr_tester.py
index 8547576..40dca84 100644
--- a/Lib/test/eintrdata/eintr_tester.py
+++ b/Lib/test/eintrdata/eintr_tester.py
@@ -252,23 +252,8 @@ class SocketEINTRTest(EINTRBaseTest):
lambda path: os.close(os.open(path, os.O_WRONLY)))
-@unittest.skipUnless(hasattr(signal, "setitimer"), "requires setitimer()")
-class TimeEINTRTest(EINTRBaseTest):
- """ EINTR tests for the time module. """
-
- def test_sleep(self):
- t0 = time.monotonic()
- time.sleep(2)
- signal.alarm(0)
- dt = time.monotonic() - t0
- self.assertGreaterEqual(dt, 1.9)
-
-
def test_main():
- support.run_unittest(
- OSEINTRTest,
- SocketEINTRTest,
- TimeEINTRTest)
+ support.run_unittest(OSEINTRTest, SocketEINTRTest)
if __name__ == "__main__":