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

Method test_no_chaining

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

Source from the content-addressed store, hash-verified

209 self.assertEqual(t.fromkeys(range(2)), {0: None, 1: None}) # Should be equivalent
210
211 def test_no_chaining(self):
212 t = list[int]
213 with self.assertRaises(TypeError):
214 t[int]
215
216 def test_generic_subclass(self):
217 class MyList(list):

Callers

nothing calls this directly

Calls 1

assertRaisesMethod · 0.95

Tested by

no test coverage detected