[pypy-commit] pypy gc_no_cleanup_nursery: the test is bogus, fix seems to be ok

fijal noreply at buildbot.pypy.org
Fri Sep 5 23:13:07 CEST 2014


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: gc_no_cleanup_nursery
Changeset: r73333:ef37f9ae099a
Date: 2014-09-05 15:12 -0600
http://bitbucket.org/pypy/pypy/changeset/ef37f9ae099a/

Log:	the test is bogus, fix seems to be ok

diff --git a/rpython/translator/c/test/test_newgc.py b/rpython/translator/c/test/test_newgc.py
--- a/rpython/translator/c/test/test_newgc.py
+++ b/rpython/translator/c/test/test_newgc.py
@@ -1194,28 +1194,6 @@
     def test_gcflag_extra(self):
         self.run("gcflag_extra")
 
-    def define_zeroing_class_works(self):
-        class A(object):
-            def __init__(self, x):
-                self.x = x
-
-        class BABA(A):
-            def __init__(self, y):
-                self.y = y
-
-        def fn(x):
-            if x > 3:
-                a = BABA(str(x))
-            else:
-                a = A(x)
-            assert not a.y
-            return 0
-
-        return fn
-
-    def test_zeroing_class_works(self):
-        self.run("zeroing_class_works", 13)
-
     def define_check_zero_works(self):
         S = lltype.GcStruct("s", ('x', lltype.Signed))
         S2 = lltype.GcStruct("s2", ('parent',


More information about the pypy-commit mailing list