Skip to content

Commit c1c3f14

Browse files
authored
BUG: missing fstring (#53990)
1 parent ce9ad65 commit c1c3f14

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pandas/_libs/tslibs/parsing.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ cdef datetime dateutil_parse(
704704
# we get tzlocal, once the deprecation is enforced will get
705705
# timezone.utc, not raise.
706706
warnings.warn(
707-
"Parsing '{res.tzname}' as tzlocal (dependent on system timezone) "
707+
f"Parsing '{res.tzname}' as tzlocal (dependent on system timezone) "
708708
"is deprecated and will raise in a future version. Pass the 'tz' "
709709
"keyword or call tz_localize after construction instead",
710710
FutureWarning,

pandas/tests/tslibs/test_parsing.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929
)
3030
def test_parsing_tzlocal_deprecated():
3131
# GH#50791
32-
msg = "Pass the 'tz' keyword or call tz_localize after construction instead"
32+
msg = (
33+
"Parsing 'EST' as tzlocal.*"
34+
"Pass the 'tz' keyword or call tz_localize after construction instead"
35+
)
3336
dtstr = "Jan 15 2004 03:00 EST"
3437

3538
with tm.set_timezone("US/Eastern"):

0 commit comments

Comments
 (0)