MCPcopy Index your code
hub / github.com/RustPython/RustPython / testExceptionTree

Method testExceptionTree

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

Source from the content-addressed store, hash-verified

6104class TestExceptions(unittest.TestCase):
6105
6106 def testExceptionTree(self):
6107 self.assertIsSubclass(OSError, Exception)
6108 self.assertIsSubclass(socket.herror, OSError)
6109 self.assertIsSubclass(socket.gaierror, OSError)
6110 self.assertIsSubclass(socket.timeout, OSError)
6111 self.assertIs(socket.error, OSError)
6112 self.assertIs(socket.timeout, TimeoutError)
6113
6114 def test_setblocking_invalidfd(self):
6115 # Regression test for issue #28471

Callers

nothing calls this directly

Calls 2

assertIsSubclassMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected