mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Fix the patch for issue #7978: select() raises select.error before 3.3, not OSError.
This commit is contained in:
parent
f18d6f3f44
commit
c0aa9eeb90
2 changed files with 3 additions and 3 deletions
|
@ -244,7 +244,7 @@ class SocketServerTest(unittest.TestCase):
|
|||
self.called += 1
|
||||
if self.called == 1:
|
||||
# raise the exception on first call
|
||||
raise OSError(errno.EINTR, os.strerror(errno.EINTR))
|
||||
raise select.error(errno.EINTR, os.strerror(errno.EINTR))
|
||||
else:
|
||||
# Return real select value for consecutive calls
|
||||
return old_select(*args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue