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

Method gen

Lib/test/test_monitoring.py:713–718  ·  view source on GitHub ↗
(self, cond)

Source from the content-addressed store, hash-verified

711class TestDisable(MonitoringTestBase, unittest.TestCase):
712
713 def gen(self, cond):
714 for i in range(10):
715 if cond:
716 yield 1
717 else:
718 yield 2
719
720 def raise_handle_reraise(self):
721 try:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected