Author: Matti Picus <[email protected]>
Branch: cpyext-debug-type_dealloc
Changeset: r92048:18ec6be95b4a
Date: 2017-08-03 12:34 +0300
http://bitbucket.org/pypy/pypy/changeset/18ec6be95b4a/

Log:    expand test, D(), E() fail leak check, C() passes. WHY?

diff --git a/pypy/module/cpyext/test/test_typeobject.py 
b/pypy/module/cpyext/test/test_typeobject.py
--- a/pypy/module/cpyext/test/test_typeobject.py
+++ b/pypy/module/cpyext/test/test_typeobject.py
@@ -577,11 +577,18 @@
              '''
              )
             ])
-        class C:
+        class C(object):
+            def dummymethod(self):
+                pass
+        class D(object):
             def __init__(self):
                 pass
-        # leak checker should not report errors
+        class E:
+            pass
+        # TODO C passes leak checker, D,E fails
         assert module.test_leak(C())
+        assert module.test_leak(D())
+        assert module.test_leak(E())
     
     def test_tp_getattro(self):
         module = self.import_extension('foo', [
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to