mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #16704: Get rid of select.error in stdlib. Use OSError instead.
This commit is contained in:
parent
5ee29491e5
commit
6d8a122b9c
5 changed files with 8 additions and 8 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue