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

Method gen

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

Source from the content-addressed store, hash-verified

448
449 def test_except_next(self):
450 def gen():
451 self.assertIsInstance(sys.exception(), ValueError)
452 yield "done"
453
454 g = gen()
455 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