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

Method test_issubclass

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

Source from the content-addressed store, hash-verified

411 isinstance([], list[str])
412
413 def test_issubclass(self):
414 class L(list): ...
415 self.assertIsSubclass(L, list)
416 with self.assertRaises(TypeError):
417 issubclass(L, list[str])
418
419 def test_type_generic(self):
420 t = type[int]

Callers

nothing calls this directly

Calls 3

assertRaisesMethod · 0.95
issubclassFunction · 0.85
assertIsSubclassMethod · 0.45

Tested by

no test coverage detected