Fix: assert deprecation. (#572)
Signed-off-by: dblock <[email protected]>
This commit is contained in:
@@ -111,9 +111,7 @@ class TestJSONSerializer(TestCase):
|
|||||||
np.float32,
|
np.float32,
|
||||||
np.float64,
|
np.float64,
|
||||||
):
|
):
|
||||||
self.assertRegexpMatches(
|
self.assertRegex(ser.dumps({"d": np_type(1.2)}), r'^\{"d":1\.2[\d]*}$')
|
||||||
ser.dumps({"d": np_type(1.2)}), r'^\{"d":1\.2[\d]*}$'
|
|
||||||
)
|
|
||||||
|
|
||||||
def test_serializes_numpy_datetime(self) -> None:
|
def test_serializes_numpy_datetime(self) -> None:
|
||||||
requires_numpy_and_pandas()
|
requires_numpy_and_pandas()
|
||||||
|
|||||||
Reference in New Issue
Block a user