Skip to content

Commit 2a7535b

Browse files
fangchenliJulianWgs
authored andcommitted
COMPAT: error massage for py310 (pandas-dev#41228)
1 parent 1b80855 commit 2a7535b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/arrays/test_datetimelike.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,7 @@ def test_array_interface(self, arr1d):
11501150
tm.assert_numpy_array_equal(result, arr.asi8)
11511151

11521152
# to other dtypes
1153-
msg = r"float\(\) argument must be a string or a number, not 'Period'"
1153+
msg = r"float\(\) argument must be a string or a( real)? number, not 'Period'"
11541154
with pytest.raises(TypeError, match=msg):
11551155
np.asarray(arr, dtype="float64")
11561156

0 commit comments

Comments
 (0)