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

Method test_cleanup_lock_create

testing/test_tmpdir.py:247–254  ·  view source on GitHub ↗
(self, tmp_path)

Source from the content-addressed store, hash-verified

245 assert symlink.resolve() == d.resolve()
246
247 def test_cleanup_lock_create(self, tmp_path):
248 d = tmp_path.joinpath("test")
249 d.mkdir()
250 lockfile = create_cleanup_lock(d)
251 with pytest.raises(OSError, match="cannot create lockfile in .*"):
252 create_cleanup_lock(d)
253
254 lockfile.unlink()
255
256 def test_lock_register_cleanup_removal(self, tmp_path: Path) -> None:
257 lock = create_cleanup_lock(tmp_path)

Callers

nothing calls this directly

Calls 2

create_cleanup_lockFunction · 0.90
mkdirMethod · 0.45

Tested by

no test coverage detected