Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ MyException
Class
MyException
Lib/test/test_exceptions.py:650–651 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
648
self.assertEqual(e.__traceback__, tb)
649
650
class
MyException(Exception):
651
pass
652
653
e = MyException().with_traceback(tb)
654
self.assertIsInstance(e, MyException)
Callers
4
testWithTraceback
Method · 0.70
testChainingAttrs
Method · 0.70
inner_raising_func
Method · 0.70
raising_gen
Method · 0.70
Calls
no outgoing calls
Tested by
4
testWithTraceback
Method · 0.56
testChainingAttrs
Method · 0.56
inner_raising_func
Method · 0.56
raising_gen
Method · 0.56