Skip to content

Commit da3de68

Browse files
committed
Skip test_numeric_uniqueness on PyPy
PyPy treats 0 and 0.0 as different values in set operations, causing the generator to create [0, 0.0] which jsonschema then rejects as having non-unique elements (since 0 == 0.0 for validation purposes).
1 parent 968687f commit da3de68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_from_schema.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,9 @@ def test_single_property_can_generate_nonempty(query):
447447
}
448448

449449

450+
@pytest.mark.skipif(
451+
PYPY, reason="PyPy treats 0 and 0.0 as different for set operations"
452+
)
450453
@given(from_schema(UNIQUE_NUMERIC_ARRAY_SCHEMA))
451454
def test_numeric_uniqueness(value):
452455
# NOTE: this kind of test should usually be embedded in corpus-reported.json,

0 commit comments

Comments
 (0)