Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ renamed_failed
Function
renamed_failed
testing/test_pathlib.py:344–345 ·
view source on GitHub ↗
(*args)
Source
from the content-addressed store, hash-verified
342
path.mkdir()
343
344
def
renamed_failed(*args):
345
raise
OSError(
"access denied"
)
346
347
monkeypatch.setattr(Path,
"rename"
, renamed_failed)
348
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected