Skip to content

Commit

Permalink
adding back xfail
Browse files Browse the repository at this point in the history
  • Loading branch information
sydney-runkle committed Sep 4, 2024
1 parent 5391f4b commit 8e8d767
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/validators/test_complex.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import math
import platform
import re

import pytest
Expand Down Expand Up @@ -82,6 +83,10 @@ def test_complex_strict(input_value, expected):
assert v.validate_python(input_value) == expected


@pytest.mark.xfail(
platform.python_implementation() == 'PyPy',
reason='PyPy cannot process this string due to a bug, even if this string is considered valid in python',
)
def test_valid_complex_string_with_space():
v = SchemaValidator({'type': 'complex'})
assert v.validate_python('\t( -1.23+4.5J )\n') == complex(-1.23, 4.5)
Expand Down

0 comments on commit 8e8d767

Please sign in to comment.