Skip to content

Commit c1e15cc

Browse files
committed
Merge pull request #4307 from jreback/ujson_small_fix
TST: change a small float comparison to np.allclose (GH4306)
2 parents 6630b43 + eec6884 commit c1e15cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/tests/test_json/test_ujson.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def test_encodeDoubleTinyExponential(self):
106106
num = -1e-45
107107
self.assertEqual(num, ujson.decode(ujson.encode(num)))
108108
num = -1e-145
109-
self.assertEqual(num, ujson.decode(ujson.encode(num)))
109+
self.assert_(np.allclose(num, ujson.decode(ujson.encode(num))))
110110

111111
def test_encodeDictWithUnicodeKeys(self):
112112
input = { u"key1": u"value1", u"key1": u"value1", u"key1": u"value1", u"key1": u"value1", u"key1": u"value1", u"key1": u"value1" }

0 commit comments

Comments
 (0)