Skip to content

Commit 4e94ec2

Browse files
committed
Skip symlink tests on Windows
1 parent 59d909b commit 4e94ec2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

testing/test_git_file_finder.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ def test_basic(inwd):
3939
}
4040

4141

42+
@pytest.mark.skipif(sys.platform == 'win32',
43+
reason="symlinks to dir not supported")
4244
def test_symlink_dir(inwd):
4345
(inwd.cwd / 'adir' / 'bdirlink').mksymlinkto('../bdir')
4446
inwd.add_and_commit()
@@ -59,6 +61,8 @@ def test_symlink_file(inwd):
5961
}
6062

6163

64+
@pytest.mark.skipif(sys.platform == 'win32',
65+
reason="symlinks to dir not supported")
6266
def test_symlink_loop(inwd):
6367
(inwd.cwd / 'adir' / 'loop').mksymlinkto('../adir')
6468
inwd.add_and_commit()
@@ -67,6 +71,8 @@ def test_symlink_loop(inwd):
6771
}
6872

6973

74+
@pytest.mark.skipif(sys.platform == 'win32',
75+
reason="symlinks to dir not supported")
7076
def test_symlink_dir_out_of_git(inwd):
7177
(inwd.cwd / 'adir' / 'outsidedirlink').\
7278
mksymlinkto(os.path.join(__file__, '..'))

0 commit comments

Comments
 (0)