Fix test_collect_symlink_dir on Windows
This commit is contained in:
parent
e354c5c919
commit
61be48b485
|
@ -1225,7 +1225,7 @@ def test_collect_symlink_dir(pytester: Pytester) -> None:
|
||||||
"""A symlinked directory is collected."""
|
"""A symlinked directory is collected."""
|
||||||
dir = pytester.mkdir("dir")
|
dir = pytester.mkdir("dir")
|
||||||
dir.joinpath("test_it.py").write_text("def test_it(): pass", "utf-8")
|
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 = pytester.runpytest()
|
||||||
result.assert_outcomes(passed=2)
|
result.assert_outcomes(passed=2)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue