Skip to content

Commit 328d5da

Browse files
committed
adjust test message
1 parent a64a31b commit 328d5da

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pandas/tests/tslibs/test_parsing.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,13 @@
3737
)
3838
def test_parsing_tzlocal_deprecated():
3939
# GH#50791
40-
msg = (
41-
r"Parsing 'EST' as tzlocal \(dependent on system timezone\) "
42-
r"is no longer supported\. "
43-
"Pass the 'tz' keyword or call tz_localize after construction instead"
40+
msg = "|".join(
41+
[
42+
r"Parsing 'EST' as tzlocal \(dependent on system timezone\) "
43+
r"is no longer supported\. "
44+
"Pass the 'tz' keyword or call tz_localize after construction instead",
45+
".*included an un-recognized timezone",
46+
]
4447
)
4548
dtstr = "Jan 15 2004 03:00 EST"
4649

0 commit comments

Comments
 (0)