Commit 6729f88
committed
Fix PyPy multipleOf float-to-int conversion
On CPython, encode_canonical_json converts integer-valued floats to ints,
but on PyPy the custom JSON encoder doesn't work (it's set to None).
Add explicit float-to-int conversion for multipleOf with pragma: no cover
since this branch is only exercised on PyPy.1 parent da3de68 commit 6729f88
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
| 317 | + | |
| 318 | + | |
318 | 319 | | |
319 | | - | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
320 | 324 | | |
321 | 325 | | |
322 | 326 | | |
| |||
0 commit comments