[pypy-svn] r54728 - in pypy/dist/pypy/objspace: std/test test
xoraxax at codespeak.net
xoraxax at codespeak.net
Wed May 14 13:02:03 CEST 2008
Author: xoraxax
Date: Wed May 14 13:01:58 2008
New Revision: 54728
Modified:
pypy/dist/pypy/objspace/std/test/test_intobject.py
pypy/dist/pypy/objspace/test/test_descroperation.py
Log:
Added two failing skipped tests that show bugs found by parrotbench.
Modified: pypy/dist/pypy/objspace/std/test/test_intobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_intobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_intobject.py Wed May 14 13:01:58 2008
@@ -414,6 +414,12 @@
def test_getnewargs(self):
assert 0 .__getnewargs__() == (0,)
+ def test_cmp(self):
+ skip("Fails with an AttributeError, works in cpython")
+ assert 1 .__cmp__
+ assert int .__cmp__
+
+
class AppTestIntOptimizedAdd(AppTestInt):
def setup_class(cls):
from pypy.conftest import gettestobjspace
Modified: pypy/dist/pypy/objspace/test/test_descroperation.py
==============================================================================
--- pypy/dist/pypy/objspace/test/test_descroperation.py (original)
+++ pypy/dist/pypy/objspace/test/test_descroperation.py Wed May 14 13:01:58 2008
@@ -318,6 +318,13 @@
a4 = A()
assert (a1 < a3) == (a1 < a4) == (a2 < a3) == (a2 < a4)
+ def test_setattrweakref(self):
+ skip("fails, works in cpython")
+ class P(object):
+ pass
+
+ setattr(P, "__weakref__", 0)
+
class AppTestWithBuiltinShortcut(AppTest_Descroperation):
OPTIONS = {'objspace.std.builtinshortcut': True}
More information about the Pypy-commit
mailing list