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

Method test_isinstance

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

assertRaisesMethod · 0.95
isinstanceFunction · 0.85
assertTrueMethod · 0.80

Tested by

no test coverage detected