MCPcopy 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
74def _is_exception(obj):
75 return (
76 isinstance(obj, BaseException) or
77 isinstance(obj, type) and issubclass(obj, BaseException)
78 )
79
80
81def _extract_mock(obj):

Callers 4

__get_side_effectMethod · 0.85
_try_iterFunction · 0.85
_execute_mock_callMethod · 0.85
_execute_mock_callMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected