diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-08-24 13:52:47 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-08-24 13:52:47 (GMT) |
commit | 71fe8c00f6e2eda39d90c225c5f7635268cc4653 (patch) | |
tree | 462d2b0d6ae8029a88c3b513f58251072bdac748 /Lib/test | |
parent | 9e0ae5398097e56490bcc720fe7ca56d50aec175 (diff) | |
download | cpython-71fe8c00f6e2eda39d90c225c5f7635268cc4653.zip cpython-71fe8c00f6e2eda39d90c225c5f7635268cc4653.tar.gz cpython-71fe8c00f6e2eda39d90c225c5f7635268cc4653.tar.bz2 |
test_socket: cancel scheduled alarm on test failure
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_socket.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index fa9a65f..9567090 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -1216,6 +1216,7 @@ class GeneralModuleTests(unittest.TestCase): signal.alarm(1) self.assertRaises(socket.timeout, c.sendall, b"x" * (1024**2)) finally: + signal.alarm(0) signal.signal(signal.SIGALRM, old_alarm) c.close() s.close() |