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

Method test_cannot_instantiate

Lib/test/test_typing.py:164–168  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

162 self.assertEqual(b.y, 2)
163
164 def test_cannot_instantiate(self):
165 with self.assertRaises(TypeError):
166 Any()
167 with self.assertRaises(TypeError):
168 type(Any)()
169
170 def test_any_works_with_alias(self):
171 # These expressions must simply not fail.

Callers

nothing calls this directly

Calls 2

AnyClass · 0.90
assertRaisesMethod · 0.45

Tested by

no test coverage detected