[Python-checkins] cpython: Relax datetime.timestamp() test around DST change
alexander.belopolsky
python-checkins at python.org
Fri Jun 8 19:00:56 CEST 2012
http://hg.python.org/cpython/rev/e6b8202443b6
changeset: 77388:e6b8202443b6
user: Alexander Belopolsky <alexander.belopolsky at gmail.com>
date: Fri Jun 08 13:00:27 2012 -0400
summary:
Relax datetime.timestamp() test around DST change
files:
Lib/test/datetimetester.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/datetimetester.py b/Lib/test/datetimetester.py
--- a/Lib/test/datetimetester.py
+++ b/Lib/test/datetimetester.py
@@ -1747,7 +1747,7 @@
# 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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list