summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Seligmann <mithrandi@mithrandi.net>2017-07-06 15:53:41 +0200
committerTristan Seligmann <mithrandi@mithrandi.net>2017-07-06 15:53:41 +0200
commit24d3196fd84e591553b865691d93eabe62002206 (patch)
treeab3bddc2dc6775b12526229fbf32fee2b97ee3b5
parent975893443cc7e1c258c82e1272fbc3fd7268d1df (diff)
downloadpython-json-patch-24d3196fd84e591553b865691d93eabe62002206.tar.gz
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.
-rwxr-xr-xtests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests.py b/tests.py
index 60e3352..e724873 100755
--- a/tests.py
+++ b/tests.py
@@ -524,7 +524,7 @@ json_st = st.recursive(
st.one_of([
st.none(),
st.booleans(),
- st.floats(),
+ st.floats(allow_nan=False),
st.text(string.printable)]),
lambda children:
st.lists(children)