Author: Manuel Jacob
Branch: kill-multimethod
Changeset: r69440:745447db5195
Date: 2014-02-25 18:40 +0100
http://bitbucket.org/pypy/pypy/changeset/745447db5195/

Log:    Rename this test and uncomment additional asserts.

diff --git a/pypy/objspace/std/test/test_floatobject.py 
b/pypy/objspace/std/test/test_floatobject.py
--- a/pypy/objspace/std/test/test_floatobject.py
+++ b/pypy/objspace/std/test/test_floatobject.py
@@ -420,16 +420,15 @@
         raises(OverflowError, math.trunc, float("inf"))
 
 
-    def test_multimethod_slice(self):
+    def test_call_special(self):
         assert 5 .__add__(3.14) is NotImplemented
         assert 3.25 .__add__(5) == 8.25
-        # xxx we are also a bit inconsistent about the following
-        #if hasattr(int, '__eq__'):  # for py.test -A: CPython is inconsistent
-        #    assert 5 .__eq__(3.14) is NotImplemented
-        #    assert 3.14 .__eq__(5) is False
-        #if hasattr(long, '__eq__'):  # for py.test -A: CPython is inconsistent
-        #    assert 5L .__eq__(3.14) is NotImplemented
-        #    assert 3.14 .__eq__(5L) is False
+
+        assert 5 .__eq__(3.14) is NotImplemented
+        assert 3.14 .__eq__(5) is False
+
+        assert 5L .__eq__(3.14) is NotImplemented
+        assert 3.14 .__eq__(5L) is False
 
     def test_from_string(self):
         raises(ValueError, float, "\0")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to