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

Method test_copy_archiving

testing/_py/test_local.py:1466–1475  ·  view source on GitHub ↗
(self, tmpdir)

Source from the content-addressed store, hash-verified

1464 x.chmod(y)
1465
1466 def test_copy_archiving(self, tmpdir):
1467 unicode_fn = "something-\342\200\223.txt"
1468 f = tmpdir.ensure("a", unicode_fn)
1469 a = f.dirpath()
1470 oldmode = f.stat().mode
1471 newmode = oldmode ^ 1
1472 f.chmod(newmode)
1473 b = tmpdir.join("b")
1474 a.copy(b, mode=True)
1475 assert b.join(f.basename).stat().mode == newmode
1476
1477 def test_copy_stat_file(self, tmpdir):
1478 src = tmpdir.ensure("src")

Callers

nothing calls this directly

Calls 6

ensureMethod · 0.80
dirpathMethod · 0.80
statMethod · 0.80
chmodMethod · 0.80
joinMethod · 0.80
copyMethod · 0.80

Tested by

no test coverage detected