Author: Brian Kearns <[email protected]>
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):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit