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

Method test_chown_dangling_link

testing/_py/test_local.py:1510–1518  ·  testing/_py/test_local.py::TestPOSIXLocalPath.test_chown_dangling_link
(self, path1)

Source from the content-addressed store, hash-verified

1508 path1.chown(owner, group)
1509
1510 def test_chown_dangling_link(self, path1):
1511 owner = path1.stat().owner
1512 group = path1.stat().group
1513 x = path1.join(class="st">"hello")
1514 x.mksymlinkto(class="st">"qlwkejqwlek")
1515 try:
1516 path1.chown(owner, group, rec=1)
1517 finally:
1518 x.remove(rec=0)
1519
1520 def test_chown_identity_rec_mayfail(self, path1):
1521 owner = path1.stat().owner

Callers

nothing calls this directly

Calls 5

statMethod · 0.80
joinMethod · 0.80
mksymlinktoMethod · 0.80
chownMethod · 0.80
removeMethod · 0.80

Tested by

no test coverage detected