Author: Manuel Jacob <[email protected]>
Branch: py3k
Changeset: r77735:1e99d60c6c5b
Date: 2015-06-01 07:13 +0200
http://bitbucket.org/pypy/pypy/changeset/1e99d60c6c5b/

Log:    Adapt test to check that type.__eq__(a, b) returns the same as
        object.__eq__(a, b).

diff --git a/pypy/objspace/std/test/test_typeobject.py 
b/pypy/objspace/std/test/test_typeobject.py
--- a/pypy/objspace/std/test/test_typeobject.py
+++ b/pypy/objspace/std/test/test_typeobject.py
@@ -1255,5 +1255,5 @@
     def test_eq_returns_notimplemented(self):
         assert type.__eq__(int, 42) is NotImplemented
         assert type.__ne__(dict, 42) is NotImplemented
-        assert type.__eq__(int, int) is True
-        assert type.__eq__(int, dict) is False
+        assert type.__eq__(int, int) == True
+        assert type.__eq__(int, dict) is NotImplemented
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to