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