|
|
@@ -562,7 +562,7 @@ class TestCode(unittest.TestCase): |
|
|
|
self.assertRaises(ValueError, loads, bytes.fromhex(v)) |
|
|
|
|
|
|
|
def test_invalid_floats(self): |
|
|
|
import mock |
|
|
|
from unittest import mock |
|
|
|
with mock.patch('math.frexp', return_value=(.87232, 1 << 23)): |
|
|
|
self.assertRaises(ValueError, dumps, 1.1) |
|
|
|
|
|
|
|