Skip to content

Commit 5adbfbb

Browse files
committed
Add a skipif decorator
1 parent 58c4292 commit 5adbfbb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_filepath.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import platform as m_platform
66
import random
7+
import sys
78
from collections import OrderedDict
89
from itertools import chain, product
910
from pathlib import Path
@@ -681,6 +682,7 @@ def test_normal_auto_platform_linux(self, value, expected):
681682
with pytest.raises(expected):
682683
sanitize_filepath(value, platform="auto")
683684

685+
@pytest.mark.skipif(sys.version_info < (3, 6), reason="requires python3.6 or higher")
684686
@pytest.mark.parametrize(
685687
["value", "expected"],
686688
[[1, TypeError], [True, TypeError], [nan, TypeError], [inf, TypeError]],

0 commit comments

Comments
 (0)