Skip to content

Commit

Permalink
Do not run test on Win (yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
zas committed Apr 10, 2024
1 parent 9804f73 commit 577c909
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
from collections import deque
from dataclasses import dataclass
from pathlib import PurePosixPath
import unittest
from unittest.mock import patch

from test.picardtestcase import PicardTestCase

from picard.const.sys import IS_WIN
from picard.log import (
_calculate_bounds,
name_filter,
Expand Down Expand Up @@ -127,6 +129,7 @@ class FakeRecord:
name: str


@unittest.skipIf(IS_WIN, "Posix test")
@patch('picard.log.picard_module_path', PurePosixPath('/path1/path2'))
class NameFilterTestRel(PicardTestCase):

Expand All @@ -151,6 +154,7 @@ def test_4(self):
name_filter(record)


@unittest.skipIf(IS_WIN, "Posix test")
@patch('picard.log.picard_module_path', PurePosixPath('/picard'))
class NameFilterTestAbs(PicardTestCase):

Expand All @@ -175,6 +179,7 @@ def test_4(self):
name_filter(record)


@unittest.skipIf(IS_WIN, "Posix test")
@patch('picard.log.picard_module_path', PurePosixPath('/path1/path2/')) # incorrect, but testing anyway
class NameFilterTestEndingSlash(PicardTestCase):

Expand Down

0 comments on commit 577c909

Please sign in to comment.