(obj)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected