Commits

Carl Friedrich Bolz committed 34826ad

skip correctly on apptests

  • Participants
  • Parent commits d937d40
  • Branches celldict-versions

Comments (0)

Files changed (1)

File pypy/objspace/std/test/test_celldict.py

         BaseTestRDictImplementation, BaseTestDevolvedDictImplementation
 from pypy.interpreter import gateway
 
-from pypy.conftest import gettestobjspace
+from pypy.conftest import gettestobjspace, option
 
 space = FakeSpace()
 
         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)
 
         d["a"] = 3
         del d["a"]
         d[object()] = 5
-        assert d.values() == [5]
+        assert d.values() == [5]