Skip to content

Commit ddb9d55

Browse files
authored
fix(test): skip a failing pytest on end-of-life Python 3.8 on Windows (#375)
1 parent 20e1fd2 commit ddb9d55

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/specification_tests/test_client_specs.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import json
2+
import platform
3+
import sys
24
import uuid
35
from os import path
46

@@ -79,6 +81,10 @@ def iter_spec():
7981
raise
8082

8183

84+
@pytest.mark.skipif(
85+
sys.version_info < (3, 9) and platform.system() == "Windows",
86+
reason="Requires Python >= 3.9 on Windows",
87+
)
8288
@pytest.mark.parametrize("spec", TEST_DATA, ids=TEST_NAMES)
8389
def test_spec(spec):
8490
unleash_client, test_data, is_variant_test = spec

0 commit comments

Comments
 (0)