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

Method run_gen

Lib/test/test_exceptions.py:1029–1034  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1027 def simple_gen():
1028 yield 1
1029 def run_gen():
1030 gen = simple_gen()
1031 try:
1032 raise RuntimeError
1033 except RuntimeError:
1034 return next(gen)
1035 run_gen()
1036 gc_collect()
1037 self.assertIsNone(sys.exception())

Callers

nothing calls this directly

Calls 1

simple_genFunction · 0.85

Tested by

no test coverage detected