Skip to content

Commit

Permalink
Fix: assert deprecation. (opensearch-project#572)
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
Signed-off-by: roma2023 <[email protected]>
  • Loading branch information
dblock authored and roma2023 committed Dec 28, 2023
1 parent 663e20d commit 39da24e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test_opensearchpy/test_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 39da24e

Please sign in to comment.