Skip to content

Commit 24d3196

Browse files
committed
Don't generate NaNs.
JSON doesn't actually allow these (despite the json module in Python happily serializing / parsing 'nan'), and they make assertEqual fail since they're not equal to anything, including themselves.
1 parent 9758934 commit 24d3196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ def test_replace_missing(self):
524524
st.one_of([
525525
st.none(),
526526
st.booleans(),
527-
st.floats(),
527+
st.floats(allow_nan=False),
528528
st.text(string.printable)]),
529529
lambda children:
530530
st.lists(children)

0 commit comments

Comments
 (0)