diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-17 20:23:46 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-17 20:23:46 (GMT) |
commit | 6d8a122b9c0f9a8032030c208a467a4923a96266 (patch) | |
tree | 40d497f177b35a7e77f7bbafde81f8f9cfa8f38a /Lib/test/test_signal.py | |
parent | 5ee29491e57b7477921f71e8dacfe1e1a3336912 (diff) | |
download | cpython-6d8a122b9c0f9a8032030c208a467a4923a96266.zip cpython-6d8a122b9c0f9a8032030c208a467a4923a96266.tar.gz cpython-6d8a122b9c0f9a8032030c208a467a4923a96266.tar.bz2 |
Issue #16704: Get rid of select.error in stdlib. Use OSError instead.
Diffstat (limited to 'Lib/test/test_signal.py')
-rw-r--r-- | Lib/test/test_signal.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index c973be8..97e8d22 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -299,10 +299,10 @@ class WakeupSignalTests(unittest.TestCase): # We attempt to get a signal during the select call try: select.select([read], [], [], TIMEOUT_FULL) - except select.error: + except OSError: pass else: - raise Exception("select.error not raised") + raise Exception("OSError not raised") after_time = time.time() dt = after_time - before_time if dt >= TIMEOUT_HALF: |