Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r61444:5c2de72cbd70
Date: 2013-02-19 09:24 +0100
http://bitbucket.org/pypy/pypy/changeset/5c2de72cbd70/

Log:    Fix many -A tests in module/gc

diff --git a/pypy/module/gc/test/test_referents.py 
b/pypy/module/gc/test/test_referents.py
--- a/pypy/module/gc/test/test_referents.py
+++ b/pypy/module/gc/test/test_referents.py
@@ -8,12 +8,16 @@
         cls._backup = [rgc.get_rpy_roots]
         w = cls.space.wrap
         space = cls.space
-        class RandomRPythonObject(object):
-            pass
+        if option.runappdirect:
+            ro = None
+        else:
+            class RandomRPythonObject(object):
+                pass
+            ro = RandomRPythonObject()
         l4 = space.newlist([w(4)])
         l2 = space.newlist([w(2)])
         l7 = space.newlist([w(7)])
-        cls.ALL_ROOTS = [l4, space.newlist([l2, l7]), RandomRPythonObject(),
+        cls.ALL_ROOTS = [l4, space.newlist([l2, l7]), ro,
                          space.newtuple([l7])]
         cls.w_ALL_ROOTS = cls.space.newlist(cls.ALL_ROOTS)
         rgc.get_rpy_roots = lambda: (
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to