Skip to content

Commit 47897c4

Browse files
committed
Fixing tests on PyPy
1 parent 998d7c8 commit 47897c4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_versions.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
# stdlib
22
import copy
33
import pickle
4+
import platform
5+
import sys
46

57
# 3rd party
68
import pytest
79

810
# this package
911
from domdf_python_tools.versions import Version, _iter_float, _iter_string, _prep_for_eq
1012

13+
pytestmark = pytest.mark.skipif(
14+
condition=sys.version_info <= (3, 6, 1) and platform.python_implementation() == "PyPy",
15+
reason="Strange bug in PyPy 7.1.1/3.6.1 on Travis when subclassing from Tuple[int, int, int]"
16+
)
17+
1118

1219
@pytest.mark.parametrize(
1320
"string, expects",

0 commit comments

Comments
 (0)