Author: Carl Friedrich Bolz <[email protected]>
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]
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit