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

Class IgnoreGeneratorExit

Lib/test/test_collections.py:1237–1239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…