From 24d3196fd84e591553b865691d93eabe62002206 Mon Sep 17 00:00:00 2001 From: Tristan Seligmann Date: Thu, 6 Jul 2017 15:53:41 +0200 Subject: 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. --- tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.1