Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustPython/RustPython
/ gen
Method
gen
Lib/test/test_generators.py:455–457 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
453
454
def
test_except_next(self):
455
def
gen():
456
self.assertIsInstance(sys.exception(), ValueError)
457
yield
"done"
458
459
g = gen()
460
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