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

Method test_cannot_init

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

Source from the content-addressed store, hash-verified

306 pass
307
308 def test_cannot_init(self):
309 with self.assertRaises(TypeError):
310 Self()
311 with self.assertRaises(TypeError):
312 type(Self)()
313
314 def test_no_isinstance(self):
315 with self.assertRaises(TypeError):

Callers

nothing calls this directly

Calls 2

SelfFunction · 0.90
assertRaisesMethod · 0.45

Tested by

no test coverage detected