mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
bpo-42413: socket.timeout is now an alias of TimeoutError (GH-23413)
Signed-off-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
7ddbaa7a1b
commit
03c8ddd9e9
24 changed files with 72 additions and 62 deletions
|
@ -40,10 +40,10 @@ class HierarchyTest(unittest.TestCase):
|
|||
self.assertIs(EnvironmentError, OSError)
|
||||
|
||||
def test_socket_errors(self):
|
||||
self.assertIs(socket.error, IOError)
|
||||
self.assertIs(socket.error, OSError)
|
||||
self.assertIs(socket.gaierror.__base__, OSError)
|
||||
self.assertIs(socket.herror.__base__, OSError)
|
||||
self.assertIs(socket.timeout.__base__, OSError)
|
||||
self.assertIs(socket.timeout, TimeoutError)
|
||||
|
||||
def test_select_error(self):
|
||||
self.assertIs(select.error, OSError)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue