(self)
| 1915 | |
| 1916 | @needs_symlinks |
| 1917 | def test_resolve_dot(self): |
| 1918 | # See http://web.archive.org/web/20200623062557/https://bitbucket.org/pitrou/pathlib/issues/9/ |
| 1919 | parser = self.parser |
| 1920 | p = self.cls(self.base) |
| 1921 | p.joinpath('0').symlink_to('.', target_is_directory=True) |
| 1922 | p.joinpath('1').symlink_to(parser.join('0', '0'), target_is_directory=True) |
| 1923 | p.joinpath('2').symlink_to(parser.join('1', '1'), target_is_directory=True) |
| 1924 | q = p / '2' |
| 1925 | self.assertEqual(q.resolve(strict=True), p) |
| 1926 | r = q / '3' / '4' |
| 1927 | self.assertRaises(FileNotFoundError, r.resolve, strict=True) |
| 1928 | # Non-strict |
| 1929 | self.assertEqual(r.resolve(strict=False), p / '3' / '4') |
| 1930 | |
| 1931 | def _check_symlink_loop(self, *args): |
| 1932 | path = self.cls(*args) |
nothing calls this directly
no test coverage detected