Skip to content

Commit

Permalink
Fix test_collect_symlink_dir on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Compiler committed May 4, 2021
1 parent b878bd6 commit 248da78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/test_collection.py
Expand Up @@ -1225,7 +1225,7 @@ def test_collect_symlink_dir(pytester: Pytester) -> None:
"""A symlinked directory is collected."""
dir = pytester.mkdir("dir")
dir.joinpath("test_it.py").write_text("def test_it(): pass", "utf-8")
pytester.path.joinpath("symlink_dir").symlink_to(dir)
symlink_or_skip(pytester.path.joinpath("symlink_dir"), dir)
result = pytester.runpytest()
result.assert_outcomes(passed=2)

Expand Down

0 comments on commit 248da78

Please sign in to comment.