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

Method test_no_kwargs

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

Source from the content-addressed store, hash-verified

518 self.assertEqual(ref(alias)(), alias)
519
520 def test_no_kwargs(self):
521 # bpo-42576
522 with self.assertRaises(TypeError):
523 GenericAlias(bad=float)
524
525 def test_subclassing_types_genericalias(self):
526 class SubClass(GenericAlias): ...

Callers

nothing calls this directly

Calls 1

assertRaisesMethod · 0.95

Tested by

no test coverage detected