Skip to content

Commit

Permalink
test_schedule.py: (really) fix test for UTC time strings
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Arnold <nerdboy@gentoo.org>
  • Loading branch information
sarnold committed Nov 14, 2019
1 parent b2714ea commit fa01b4b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test_schedule.py
Expand Up @@ -143,11 +143,7 @@ def test_utc_is_normal(self):
self.assertIsInstance(fo, datetime.tzinfo)
dt = datetime.datetime.now(utc)
self.assertEqual(fo.utcoffset(dt), datetime.timedelta(0))
if sys.version_info > (3, 0, 0):
utc_arg = "UTC+00:00"
else:
utc_arg = "UTC"
self.assertEqual(fo.tzname(dt), utc_arg)
assert "UTC" in fo.tzname(dt)

def test_utc_dst_is_dt(self):
fo = utc
Expand Down

0 comments on commit fa01b4b

Please sign in to comment.