Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ Mike Hoyle (hoylemd)
Mike Lundy
Milan Lesnek
Miro Hrončok
Mulat Mekonen
mrbean-bremen
Nathan Goldbaum
Nathan Rousseau
Expand Down
1 change: 1 addition & 0 deletions changelog/13771.contrib.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Skip `test_do_not_collect_symlink_siblings` on Windows environments without symlink support to avoid false negatives.
3 changes: 2 additions & 1 deletion testing/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1871,7 +1871,8 @@ def test_do_not_collect_symlink_siblings(
"""
# Use tmp_path because it creates a symlink with the name "current" next to the directory it creates.
symlink_path = tmp_path.parent / (tmp_path.name[:-1] + "current")
assert symlink_path.is_symlink() is True
if not symlink_path.is_symlink(): # pragma: no cover
pytest.skip("Symlinks not supported in this environment")

# Create test file.
tmp_path.joinpath("test_foo.py").write_text("def test(): pass", encoding="UTF-8")
Expand Down