summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2012-04-01 14:40:17 (GMT)
committerEli Bendersky <eliben@gmail.com>2012-04-01 14:40:17 (GMT)
commit0261d754cd7f6bedf7415d94b18b7b631bfa8a63 (patch)
treea3c33bbdf4714f487dc5bc9a06af3d8bd0f3b1d4
parent29b964d0ddebad90c252139911f6702632b55b8a (diff)
downloadcpython-0261d754cd7f6bedf7415d94b18b7b631bfa8a63.zip
cpython-0261d754cd7f6bedf7415d94b18b7b631bfa8a63.tar.gz
cpython-0261d754cd7f6bedf7415d94b18b7b631bfa8a63.tar.bz2
Removing the test of Element that causes ref-leak in GC (issue #14464).
I will now continue investigating the cause of the ref-leak, but I wanted to remove the test so that the refcount test in the buildbots could be clean. The whole change (adding GC to Element) is not reverted because it improved the situation (GC works for immediate cycles) and didn't cause regressions (the test is new and was added together with the fix).
-rw-r--r--Lib/test/test_xml_etree.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/Lib/test/test_xml_etree.py b/Lib/test/test_xml_etree.py
index bd2a826..aa9a40d 100644
--- a/Lib/test/test_xml_etree.py
+++ b/Lib/test/test_xml_etree.py
@@ -1859,16 +1859,6 @@ class BasicElementTest(unittest.TestCase):
gc_collect()
self.assertIsNone(wref())
- # A longer cycle: d->e->e2->d
- e = ET.Element('joe')
- d = Dummy()
- d.dummyref = e
- wref = weakref.ref(d)
- e2 = ET.SubElement(e, 'foo', attr=d)
- del d, e, e2
- gc_collect()
- self.assertIsNone(wref())
-
class ElementTreeTest(unittest.TestCase):
def test_istype(self):