Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ gen
Method
gen
Lib/test/test_generators.py:450–452 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
448
449
def
test_except_next(self):
450
def
gen():
451
self.assertIsInstance(sys.exception(), ValueError)
452
yield
"done"
453
454
g = gen()
455
try
:
Callers
nothing calls this directly
Calls
4
assertIsInstance
Method · 0.80
assertIsNone
Method · 0.80
exception
Method · 0.45
assertEqual
Method · 0.45
Tested by
no test coverage detected