Fix: assert deprecation. (#572)

Signed-off-by: dblock <dblock@amazon.com>
This commit is contained in:
Daniel (dB.) Doubrovkine
2023-11-10 13:26:10 -05:00
committed by GitHub
parent 55d0e0d7ba
commit f1d02376e4
+1 -3
View File
@@ -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()