From 270ba13a26fec43999290fd55d61b5349d76202a Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 9 Aug 2013 11:35:55 +0200 Subject: [PATCH] test improved deallocation in Py3.4 --- tests/run/exttype_dealloc.pyx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/run/exttype_dealloc.pyx b/tests/run/exttype_dealloc.pyx index 0165cda..6d317e4 100644 --- a/tests/run/exttype_dealloc.pyx +++ b/tests/run/exttype_dealloc.pyx @@ -2,6 +2,7 @@ # tag: dealloc import gc +import sys test_results = [] @@ -132,7 +133,11 @@ class PySubTypeRefCycleDel(ExtTypeRefCycle): >>> obj = None >>> _ = gc.collect() - # no guarantees here ... + >>> count = 2 + >>> if sys.version_info >= (3, 4): + ... count = find_name(PySubTypeRefCycleDel) + >>> count + 2 """ def __del__(self): add_name(self) -- 2.7.4