MCPcopy Index your code
hub / github.com/python/cpython / InvalidSpecError

Class InvalidSpecError

Lib/unittest/mock.py:45–46  ·  view source on GitHub ↗

Indicates that an invalid value was used as a mock spec.

Source from the content-addressed store, hash-verified

43
44
45class InvalidSpecError(Exception):
46 """Indicates that an invalid value was used as a mock spec."""
47
48
49_builtins = {name for name in dir(builtins) if not name.startswith('_')}

Callers 5

_mock_add_specMethod · 0.85
__getattr__Method · 0.85
__init__Method · 0.85
__enter__Method · 0.85
create_autospecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…