Skip to content

Commit

Permalink
test_gitignore_parser: Skip symlink-creating test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jherland committed Mar 8, 2024
1 parent e44a405 commit b634c42
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_gitignore_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,10 @@ def test_gitignore_parser_w_rel_paths(vector: GitignoreParserTestVector):
)


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="Symlinks on Windows may be created only by administrators",
)
def test_symlink_to_another_directory(tmp_path):
project_dir = tmp_path / "project_dir"
link = project_dir / "link"
Expand Down

0 comments on commit b634c42

Please sign in to comment.