Skip to content

Commit 248da78

Browse files
committed
Fix test_collect_symlink_dir on Windows
1 parent b878bd6 commit 248da78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/test_collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ def test_collect_symlink_dir(pytester: Pytester) -> None:
12251225
"""A symlinked directory is collected."""
12261226
dir = pytester.mkdir("dir")
12271227
dir.joinpath("test_it.py").write_text("def test_it(): pass", "utf-8")
1228-
pytester.path.joinpath("symlink_dir").symlink_to(dir)
1228+
symlink_or_skip(pytester.path.joinpath("symlink_dir"), dir)
12291229
result = pytester.runpytest()
12301230
result.assert_outcomes(passed=2)
12311231

0 commit comments

Comments
 (0)