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

Method test_no_kwargs

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

assertRaisesMethod · 0.95
GenericAliasFunction · 0.90

Tested by

no test coverage detected