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

Method test_isinstance

Lib/test/test_genericalias.py:410–413  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

408 self.assertNotEqual((*tuple[int],)[0], tuple[int])
409
410 def test_isinstance(self):
411 self.assertTrue(isinstance([], list))
412 with self.assertRaises(TypeError):
413 isinstance([], list[str])
414
415 def test_issubclass(self):
416 class L(list): ...

Callers

nothing calls this directly

Calls 2

assertRaisesMethod · 0.95
assertTrueMethod · 0.80

Tested by

no test coverage detected