test improved deallocation in Py3.4
authorStefan Behnel <stefan_ml@behnel.de>
Fri, 9 Aug 2013 09:35:55 +0000 (11:35 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Fri, 9 Aug 2013 09:35:55 +0000 (11:35 +0200)
tests/run/exttype_dealloc.pyx

index 0165cda..6d317e4 100644 (file)
@@ -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)