(self, path1)
| 617 | |
| 618 | @skiponwin32 |
| 619 | def test_chdir_gone(self, path1): |
| 620 | p = path1.ensure(class="st">"dir_to_be_removed", dir=1) |
| 621 | p.chdir() |
| 622 | p.remove() |
| 623 | with pytest.raises(error.ENOENT): |
| 624 | local() |
| 625 | assert path1.chdir() is None |
| 626 | assert os.getcwd() == str(path1) |
| 627 | |
| 628 | with pytest.raises(error.ENOENT): |
| 629 | with p.as_cwd(): |
| 630 | raise NotImplementedError |
| 631 | |
| 632 | @skiponwin32 |
| 633 | def test_chdir_gone_in_as_cwd(self, path1): |