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

Class IgnoreGeneratorExit

Lib/test/test_collections.py:1236–1238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1234 self.assertRaises(ValueError, FailOnClose().close)
1235
1236 class IgnoreGeneratorExit(Generator):
1237 def send(self, value): return value
1238 def throw(self, *args): pass
1239
1240 self.assertRaises(RuntimeError, IgnoreGeneratorExit().close)
1241

Callers 2

test_GeneratorMethod · 0.85
test_AsyncGeneratorMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_GeneratorMethod · 0.68
test_AsyncGeneratorMethod · 0.68