projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7add1d
)
test improved deallocation in Py3.4
author
Stefan Behnel
<stefan_ml@behnel.de>
Fri, 9 Aug 2013 09:35:55 +0000
(11:35 +0200)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Fri, 9 Aug 2013 09:35:55 +0000
(11:35 +0200)
tests/run/exttype_dealloc.pyx
patch
|
blob
|
history
diff --git
a/tests/run/exttype_dealloc.pyx
b/tests/run/exttype_dealloc.pyx
index
0165cda
..
6d317e4
100644
(file)
--- 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)