File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -502,7 +502,8 @@ def test_issue50():
502502
503503
504504def test_includes_dst_offset ():
505- tz = dateutil .tz .gettz ('us/eastern' )
505+ tz = dateutil .tz .gettz ('US/Eastern' )
506+ assert tz is not None
506507
507508 # Simple first
508509 dt = datetime .datetime (2020 , 1 , 1 )
@@ -519,9 +520,13 @@ def test_omits_dst_offset():
519520 # Check dateutil, pytz, and zoneinfo (3.9+) tzinfo instances
520521 timezones = []
521522 if 'dateutil' in globals ():
522- timezones .append (dateutil .tz .gettz ('us/eastern' ))
523+ tz = dateutil .tz .gettz ('US/Eastern' )
524+ assert tz is not None
525+ timezones .append (tz )
523526 if 'zoneinfo' in globals ():
524- timezones .append (zoneinfo .ZoneInfo ('us/eastern' ))
527+ tz = zoneinfo .ZoneInfo ('US/Eastern' )
528+ assert tz is not None
529+ timezones .append (tz )
525530
526531 for tz in timezones :
527532 dt = datetime .datetime (2020 , 1 , 1 )
You can’t perform that action at this time.
0 commit comments