(self)
| 617 | @os_helper.skip_unless_symlink |
| 618 | @skip_if_ABSTFN_contains_backslash |
| 619 | def test_realpath_missing_pardir(self): |
| 620 | try: |
| 621 | os.symlink(TESTFN + "1", TESTFN) |
| 622 | path = "nonexistent/../" + TESTFN |
| 623 | self.assertEqual(realpath(path), ABSTFN + "1") |
| 624 | self.assertEqual(realpath(path, strict=ALLOW_MISSING), ABSTFN + "1") |
| 625 | self.assertRaises(FileNotFoundError, realpath, path, strict=ALL_BUT_LAST) |
| 626 | self.assertRaises(FileNotFoundError, realpath, path, strict=True) |
| 627 | finally: |
| 628 | os_helper.unlink(TESTFN) |
| 629 | |
| 630 | @os_helper.skip_unless_symlink |
| 631 | @skip_if_ABSTFN_contains_backslash |
nothing calls this directly
no test coverage detected