[pypy-commit] pypy py3k: fix test_datetime

bdkearns noreply at buildbot.pypy.org
Fri Mar 7 03:31:38 CET 2014


Author: Brian Kearns <bdkearns at gmail.com>
Branch: py3k
Changeset: r69770:0e92f3e927c3
Date: 2014-03-06 21:30 -0500
http://bitbucket.org/pypy/pypy/changeset/0e92f3e927c3/

Log:	fix test_datetime

diff --git a/lib-python/3/datetime.py b/lib-python/3/datetime.py
--- a/lib-python/3/datetime.py
+++ b/lib-python/3/datetime.py
@@ -1820,6 +1820,8 @@
         return (self._offset, self._name)
 
     def __eq__(self, other):
+        if type(other) != timezone:
+            return False
         return self._offset == other._offset
 
     def __hash__(self):


More information about the pypy-commit mailing list