summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_exception_hierarchy.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_exception_hierarchy.py')
-rw-r--r--Lib/test/test_exception_hierarchy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_exception_hierarchy.py b/Lib/test/test_exception_hierarchy.py
index 43b4af8..89fe9dd 100644
--- a/Lib/test/test_exception_hierarchy.py
+++ b/Lib/test/test_exception_hierarchy.py
@@ -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)