Skip to content

Commit 1bb5a36

Browse files
committed
Fix pandas timestamp test
1 parent 1a4273d commit 1bb5a36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test_elasticsearch_serverless/test_serializer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ def test_serializes_numpy_nan_to_nan():
127127

128128
@requires_numpy_and_pandas
129129
def test_serializes_pandas_timestamp(json_serializer):
130-
assert b'{"d":"2010-10-01T02:30:00"}' == json_serializer.dumps()
130+
assert b'{"d":"2010-10-01T02:30:00"}' == json_serializer.dumps(
131+
{"d": pd.Timestamp("2010-10-01T02:30:00")}
132+
)
131133

132134

133135
@requires_numpy_and_pandas

0 commit comments

Comments
 (0)