diff options
| author | Tristan Seligmann <mithrandi@mithrandi.net> | 2017-07-06 15:53:41 +0200 |
|---|---|---|
| committer | Tristan Seligmann <mithrandi@mithrandi.net> | 2017-07-06 15:53:41 +0200 |
| commit | 24d3196fd84e591553b865691d93eabe62002206 (patch) | |
| tree | ab3bddc2dc6775b12526229fbf32fee2b97ee3b5 | |
| parent | 975893443cc7e1c258c82e1272fbc3fd7268d1df (diff) | |
| download | python-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-x | tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
