Skip to content

Commit 14f22ca

Browse files
WillAydjreback
authored andcommitted
Relaxed error message for failing test (#26201)
1 parent d74901b commit 14f22ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/tests/indexes/datetimes/test_tools.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1323,8 +1323,7 @@ def test_string_na_nat_conversion(self, cache):
13231323
malformed = np.array(['1/100/2000', np.nan], dtype=object)
13241324

13251325
# GH 10636, default is now 'raise'
1326-
msg = (r"\(u?'Unknown string format:', '1/100/2000'\)|"
1327-
"day is out of range for month")
1326+
msg = (r"Unknown string format:|day is out of range for month")
13281327
with pytest.raises(ValueError, match=msg):
13291328
to_datetime(malformed, errors='raise', cache=cache)
13301329

0 commit comments

Comments
 (0)