From 68b7c2f6a3950d9dddaf1a5d311dc4abba2ecd5f Mon Sep 17 00:00:00 2001 From: dblock Date: Fri, 10 Nov 2023 11:40:14 -0500 Subject: [PATCH] Fix: assert deprecation. Signed-off-by: dblock --- test_opensearchpy/test_serializer.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test_opensearchpy/test_serializer.py b/test_opensearchpy/test_serializer.py index d425fabf..4823a1d4 100644 --- a/test_opensearchpy/test_serializer.py +++ b/test_opensearchpy/test_serializer.py @@ -111,9 +111,7 @@ def test_serializes_numpy_floats(self) -> None: 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()