Skip to content

Commit

Permalink
Make test compatible with Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
  • Loading branch information
carmenbianca committed Sep 6, 2024
1 parent a15f4a7 commit 2a01758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def test_no_copyright_licensing(self, fake_repository, stringio):
def test_path_outside_project(self, empty_directory, capsys):
"""A file can't be outside the project."""
with pytest.raises(SystemExit):
main(["lint-file", "/"])
main(["lint-file", ".."])
assert "'/' is not in" in capsys.readouterr().err

def test_file_not_exists(self, empty_directory, capsys):
Expand Down

0 comments on commit 2a01758

Please sign in to comment.