MCPcopy Create free account
hub / github.com/pytest-dev/pytest / findsource

Function findsource

testing/test_runner.py:855–859  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

853 original_findsource = inspect.findsource
854
855 def findsource(obj):
856 # Can be triggered by dynamically created functions
857 if obj.__name__ == "foo":
858 raise IndexError()
859 return original_findsource(obj)
860
861 monkeypatch.setattr(inspect, "findsource", findsource)
862

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected