Skip POSIX escaping test on Windows

Because of the backslash, Windows tries to create a new directory and asks for
a confirmation, which fails.
This commit is contained in:
Florian Bruhin 2018-10-08 17:51:43 +02:00
parent 8d69d9d412
commit 0add3b1bb0

View File

@ -101,7 +101,7 @@ class TestDownloadTarget:
pytest.param('A *|<>\\: bear!', 'A ______ bear!',
marks=pytest.mark.fake_os('windows')),
pytest.param('A *|<>\\: bear!', 'A *|<>\\: bear!',
marks=pytest.mark.fake_os('posix')),
marks=[pytest.mark.fake_os('posix'), pytest.mark.posix]),
])
def test_sanitized_filenames(raw, expected,
config_stub, download_tmpdir, monkeypatch):