Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RT-Thread/env-windows
/ _is_exception
Function
_is_exception
tools/python-3.11.9-amd64/Lib/unittest/mock.py:74–78 ·
view source on GitHub ↗
(obj)
Source
from the content-addressed store, hash-verified
72
73
74
def
_is_exception(obj):
75
return
(
76
isinstance(obj, BaseException) or
77
isinstance(obj, type) and issubclass(obj, BaseException)
78
)
79
80
81
def
_extract_mock(obj):
Callers
4
__get_side_effect
Method · 0.85
_try_iter
Function · 0.85
_execute_mock_call
Method · 0.85
_execute_mock_call
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected