diff --git a/tests/test_main.py b/tests/test_main.py index 0b59aa37..10a316a2 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -70,7 +70,7 @@ def test_main_non_ascii_filename(tmpdir, capsys): std = capsys.readouterr() # but here, we have to use a unicode instance, # because capsys has decoded the output for us. - assert path in std.out + assert Path(path).as_posix() in std.out def test_main_non_ascii_filename_nonexistent(tmpdir, caplog):