(self, tmpdir)
| 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") |