[pypy-svn] r48871 - pypy/branch/new-genc-tests-wrapper/pypy/translator/c/test

rxe at codespeak.net rxe at codespeak.net
Tue Nov 20 20:22:22 CET 2007


Author: rxe
Date: Tue Nov 20 20:22:22 2007
New Revision: 48871

Modified:
   pypy/branch/new-genc-tests-wrapper/pypy/translator/c/test/test_boehm.py
Log:
(cfbolz, rxe) remove pyobj test

Modified: pypy/branch/new-genc-tests-wrapper/pypy/translator/c/test/test_boehm.py
==============================================================================
--- pypy/branch/new-genc-tests-wrapper/pypy/translator/c/test/test_boehm.py	(original)
+++ pypy/branch/new-genc-tests-wrapper/pypy/translator/c/test/test_boehm.py	Tue Nov 20 20:22:22 2007
@@ -195,31 +195,6 @@
         res = fn()
         assert res == 10
         
-    # this test shows if we have a problem with refcounting PyObject
-    def test_refcount_pyobj(self):
-        from pypy.rpython.lltypesystem.lloperation import llop
-        def prob_with_pyobj(b):
-            return 3, b
-        def collect():
-            llop.gc__collect(lltype.Void)
-        f = self.getcompiled(prob_with_pyobj, [object])
-        c = self.getcompiled(collect, [])
-        from sys import getrefcount as g
-        obj = None
-        before = g(obj)
-        f(obj)
-        f(obj)
-        f(obj)
-        f(obj)
-        f(obj)
-        c()
-        c()
-        c()
-        c()
-        c()
-        after = g(obj)
-        assert abs(before - after) < 5
-
     def test_zero_malloc(self):
         T = lltype.GcStruct("C", ('x', lltype.Signed))
         def fixed_size():



More information about the Pypy-commit mailing list