MCPcopy
hub / github.com/pytest-dev/pytest / test_cleanup_lock_create

Method test_cleanup_lock_create

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

Source from the content-addressed store, hash-verified

449 assert symlink.resolve() == d.resolve()
450
451 def test_cleanup_lock_create(self, tmp_path):
452 d = tmp_path.joinpath("test")
453 d.mkdir()
454 lockfile = create_cleanup_lock(d)
455 with pytest.raises(OSError, match=r"cannot create lockfile in .*"):
456 create_cleanup_lock(d)
457
458 lockfile.unlink()
459
460 def test_lock_register_cleanup_removal(self, tmp_path: Path) -> None:
461 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