From 2a017582e30984cd4e584cc63ddde9026beec62a Mon Sep 17 00:00:00 2001 From: Carmen Bianca BAKKER Date: Fri, 6 Sep 2024 17:11:33 +0200 Subject: [PATCH] Make test compatible with Windows Signed-off-by: Carmen Bianca BAKKER --- tests/test_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_main.py b/tests/test_main.py index d5d97733..21d0da21 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -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):