Commit f6f56183 authored by Alexander Belopolsky's avatar Alexander Belopolsky

Relax datetime.timestamp() test around DST change

parent 0c687e5e
......@@ -1747,7 +1747,7 @@ class TestDateTime(TestDate):
# Missing hour may produce platform-dependent result
t = self.theclass(2012, 3, 11, 2, 30)
self.assertIn(self.theclass.fromtimestamp(t.timestamp()),
[t, t + timedelta(hours=1)])
[t - timedelta(hours=1), t + timedelta(hours=1)])
# Ambiguous hour defaults to DST
t = self.theclass(2012, 11, 4, 1, 30)
self.assertEqual(self.theclass.fromtimestamp(t.timestamp()), t)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment