Skip to content

Commit f1d0237

Browse files
authored
Fix: assert deprecation. (opensearch-project#572)
Signed-off-by: dblock <dblock@amazon.com>
1 parent 55d0e0d commit f1d0237

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test_opensearchpy/test_serializer.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ def test_serializes_numpy_floats(self) -> None:
111111
np.float32,
112112
np.float64,
113113
):
114-
self.assertRegexpMatches(
115-
ser.dumps({"d": np_type(1.2)}), r'^\{"d":1\.2[\d]*}$'
116-
)
114+
self.assertRegex(ser.dumps({"d": np_type(1.2)}), r'^\{"d":1\.2[\d]*}$')
117115

118116
def test_serializes_numpy_datetime(self) -> None:
119117
requires_numpy_and_pandas()

0 commit comments

Comments
 (0)