Skip to content

Commit

Permalink
fix for windows <= 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Feb 11, 2024
1 parent ca4da79 commit 196b586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_black.py
Original file line number Diff line number Diff line change
Expand Up @@ -2688,7 +2688,7 @@ def test_get_sources_with_stdin_symlink_outside_root(
path = THIS_DIR / "data" / "include_exclude_tests"
stdin_filename = str(path / "b/exclude/a.py")
outside_root_symlink = Path("/target_directory/a.py")
root = Path("target_directory/").resolve()
root = Path("target_dir/").resolve().absolute()
with patch("pathlib.Path.resolve", return_value=outside_root_symlink):
assert_collected_sources(
root=root,
Expand Down

0 comments on commit 196b586

Please sign in to comment.