File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -704,7 +704,7 @@ cdef datetime dateutil_parse(
704
704
# we get tzlocal, once the deprecation is enforced will get
705
705
# timezone.utc, not raise.
706
706
warnings.warn(
707
- " Parsing '{res.tzname}' as tzlocal (dependent on system timezone) "
707
+ f " Parsing '{res.tzname}' as tzlocal (dependent on system timezone) "
708
708
" is deprecated and will raise in a future version. Pass the 'tz' "
709
709
" keyword or call tz_localize after construction instead" ,
710
710
FutureWarning ,
Original file line number Diff line number Diff line change 29
29
)
30
30
def test_parsing_tzlocal_deprecated ():
31
31
# 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
+ )
33
36
dtstr = "Jan 15 2004 03:00 EST"
34
37
35
38
with tm .set_timezone ("US/Eastern" ):
You can’t perform that action at this time.
0 commit comments