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

Method test_no_chaining

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

assertRaisesMethod · 0.95

Tested by

no test coverage detected