From 1ebb5dbec55f5b48358108701c0be97ddeecd854 Mon Sep 17 00:00:00 2001 From: Delgan Date: Sun, 19 Jan 2020 12:09:21 +0100 Subject: [PATCH] Fix some filesink retention unit tests on Windows --- tests/test_filesink_retention.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_filesink_retention.py b/tests/test_filesink_retention.py index 49f29312..c3e39c43 100644 --- a/tests/test_filesink_retention.py +++ b/tests/test_filesink_retention.py @@ -149,6 +149,7 @@ def test_manage_formatted_files(monkeypatch_date, tmpdir): assert f3.check(exists=0) +@pytest.mark.skipif(os.name == "nt", reason="Windows does not support '*' in filename") def test_date_with_dot_after_extension(monkeypatch_date, tmpdir): file = tmpdir.join("file.{time:YYYY.MM}_log") @@ -158,6 +159,7 @@ def test_date_with_dot_after_extension(monkeypatch_date, tmpdir): assert file.check(exists=0) +@pytest.mark.skipif(os.name == "nt", reason="Windows does not support '*' in filename") def test_symbol_in_filename(tmpdir): file = tmpdir.join("file123.log") file.write("")