[pypy-commit] pypy celldict-versions: skip correctly on apptests

cfbolz noreply at buildbot.pypy.org
Thu Jul 7 12:21:11 CEST 2011


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: celldict-versions
Changeset: r45402:34826add86e7
Date: 2011-07-07 12:29 +0200
http://bitbucket.org/pypy/pypy/changeset/34826add86e7/

Log:	skip correctly on apptests

diff --git a/pypy/objspace/std/test/test_celldict.py b/pypy/objspace/std/test/test_celldict.py
--- a/pypy/objspace/std/test/test_celldict.py
+++ b/pypy/objspace/std/test/test_celldict.py
@@ -6,7 +6,7 @@
         BaseTestRDictImplementation, BaseTestDevolvedDictImplementation
 from pypy.interpreter import gateway
 
-from pypy.conftest import gettestobjspace
+from pypy.conftest import gettestobjspace, option
 
 space = FakeSpace()
 
@@ -46,6 +46,8 @@
         cls.space = gettestobjspace(**{"objspace.std.withcelldict": True})
 
     def w_impl_used(self, obj):
+        if option.runappdirect:
+            py.test.skip("__repr__ doesn't work on appdirect")
         import __pypy__
         assert "ModuleDictStrategy" in __pypy__.internal_repr(obj)
 
@@ -134,4 +136,4 @@
         d["a"] = 3
         del d["a"]
         d[object()] = 5
-        assert d.values() == [5]
\ No newline at end of file
+        assert d.values() == [5]


More information about the pypy-commit mailing list