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

Method gen

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

Source from the content-addressed store, hash-verified

717class TestDisable(MonitoringTestBase, unittest.TestCase):
718
719 def gen(self, cond):
720 for i in range(10):
721 if cond:
722 yield 1
723 else:
724 yield 2
725
726 def raise_handle_reraise(self):
727 try:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected