Skip to content

Commit

Permalink
Fix some filesink retention unit tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Delgan committed Jan 19, 2020
1 parent 097299d commit 1ebb5db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_filesink_retention.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand All @@ -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("")
Expand Down

0 comments on commit 1ebb5db

Please sign in to comment.