Skip to content

Commit

Permalink
BUG: missing fstring (pandas-dev#53990)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockmendel authored and im-vinicius committed Jul 8, 2023
1 parent cdd73fd commit 3f26bf6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pandas/_libs/tslibs/parsing.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ cdef datetime dateutil_parse(
# we get tzlocal, once the deprecation is enforced will get
# timezone.utc, not raise.
warnings.warn(
"Parsing '{res.tzname}' as tzlocal (dependent on system timezone) "
f"Parsing '{res.tzname}' as tzlocal (dependent on system timezone) "
"is deprecated and will raise in a future version. Pass the 'tz' "
"keyword or call tz_localize after construction instead",
FutureWarning,
Expand Down
5 changes: 4 additions & 1 deletion pandas/tests/tslibs/test_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
)
def test_parsing_tzlocal_deprecated():
# GH#50791
msg = "Pass the 'tz' keyword or call tz_localize after construction instead"
msg = (
"Parsing 'EST' as tzlocal.*"
"Pass the 'tz' keyword or call tz_localize after construction instead"
)
dtstr = "Jan 15 2004 03:00 EST"

with tm.set_timezone("US/Eastern"):
Expand Down

0 comments on commit 3f26bf6

Please sign in to comment.