(self, *args, **kwargs)
| 59 | real_open = Path.open |
| 60 | |
| 61 | def tracking_open(self, *args, **kwargs): |
| 62 | fp = real_open(self, *args, **kwargs) |
| 63 | opened.append(fp) |
| 64 | return fp |
| 65 | |
| 66 | monkeypatch.setattr(Path, "open", tracking_open) |
| 67 |
nothing calls this directly
no outgoing calls
no test coverage detected