def test_numpy_float128(self):
x = numpy.float128(55.3)
s = Serializable.dumps(x)
y = Serializable.from_json(s)
self.assertAlmostEqual(x, y, 5)
self.assertEqual(str(x.dtype), 'float128')
self.assertEqual(str(y.dtype), 'float128')
评论列表
文章目录