TestNumberedDir: ignore that symlinks arent created on windows

This commit is contained in:
Ronny Pfannschmidt 2018-10-17 21:39:23 +02:00
parent 8dca8f3c9f
commit 56dd7bc551
1 changed files with 4 additions and 2 deletions

View File

@ -197,8 +197,10 @@ class TestNumberedDir(object):
assert d.name.endswith(str(i))
symlink = tmp_path.joinpath(self.PREFIX + "current")
assert symlink.is_symlink()
assert symlink.resolve() == d.resolve()
if symlink.exists():
# unix
assert symlink.is_symlink()
assert symlink.resolve() == d.resolve()
def test_cleanup_lock_create(self, tmp_path):
d = tmp_path.joinpath("test")