We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55d0e0d commit f1d0237Copy full SHA for f1d0237
test_opensearchpy/test_serializer.py
@@ -111,9 +111,7 @@ def test_serializes_numpy_floats(self) -> None:
111
np.float32,
112
np.float64,
113
):
114
- self.assertRegexpMatches(
115
- ser.dumps({"d": np_type(1.2)}), r'^\{"d":1\.2[\d]*}$'
116
- )
+ self.assertRegex(ser.dumps({"d": np_type(1.2)}), r'^\{"d":1\.2[\d]*}$')
117
118
def test_serializes_numpy_datetime(self) -> None:
119
requires_numpy_and_pandas()
0 commit comments