Skip to content

Commit c295fb2

Browse files
committed
Improve test_valid_complex_string_with_space() xfail condition
Improve the xfail condition for `test_valid_complex_string_with_space()` to use PyPy version rather than Python version. This corresponds to the fact that the issue was fixed in 7.3.17 releases. The other condition works only because PyPy3.9 is no longer being developed, and therefore did not get a 7.3.17 release.
1 parent dec5faa commit c295fb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/validators/test_complex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def test_complex_strict(input_value, expected):
8585

8686

8787
@pytest.mark.xfail(
88-
platform.python_implementation() == 'PyPy' and sys.version_info < (3, 10),
88+
platform.python_implementation() == 'PyPy' and sys.pypy_version_info < (7, 3, 17),
8989
reason='PyPy cannot process this string due to a bug, even if this string is considered valid in python',
9090
)
9191
def test_valid_complex_string_with_space():

0 commit comments

Comments
 (0)