MCPcopy Create free account
hub / github.com/RustPython/RustPython / gen

Method gen

Lib/test/test_generators.py:455–457  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

453
454 def test_except_next(self):
455 def gen():
456 self.assertIsInstance(sys.exception(), ValueError)
457 yield "done"
458
459 g = gen()
460 try:

Callers

nothing calls this directly

Calls 4

assertIsInstanceMethod · 0.80
assertIsNoneMethod · 0.80
exceptionMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected