diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2012-06-08 17:00:27 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2012-06-08 17:00:27 (GMT) |
commit | f6f56183eea64884fdf1d8825a094bd229349595 (patch) | |
tree | ac156ee8789d17a8de8d3705dc1f9071dece097a | |
parent | 0c687e5e88f044f5f65d4476970d7ec12dc67dbb (diff) | |
download | cpython-f6f56183eea64884fdf1d8825a094bd229349595.zip cpython-f6f56183eea64884fdf1d8825a094bd229349595.tar.gz cpython-f6f56183eea64884fdf1d8825a094bd229349595.tar.bz2 |
Relax datetime.timestamp() test around DST change
-rw-r--r-- | Lib/test/datetimetester.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/datetimetester.py b/Lib/test/datetimetester.py index 266ef69..a4180ae 100644 --- a/Lib/test/datetimetester.py +++ b/Lib/test/datetimetester.py @@ -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) |