MCPcopy Index your code
hub / github.com/python/cpython / testExceptionTree

Method testExceptionTree

Lib/test/test_socket.py:6209–6215  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6207class TestExceptions(unittest.TestCase):
6208
6209 def testExceptionTree(self):
6210 self.assertIsSubclass(OSError, Exception)
6211 self.assertIsSubclass(socket.herror, OSError)
6212 self.assertIsSubclass(socket.gaierror, OSError)
6213 self.assertIsSubclass(socket.timeout, OSError)
6214 self.assertIs(socket.error, OSError)
6215 self.assertIs(socket.timeout, TimeoutError)
6216
6217 def test_setblocking_invalidfd(self):
6218 # Regression test for issue #28471

Callers

nothing calls this directly

Calls 2

assertIsSubclassMethod · 0.80
assertIsMethod · 0.45

Tested by

no test coverage detected