summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_xml_etree_c.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-12-28 07:23:17 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-12-28 07:23:17 (GMT)
commit1451874e6be94ff1f0b68d84b466da4a16bddaf2 (patch)
tree4d39de101485e352e9d50ccd2113d9cdb56733df /Lib/test/test_xml_etree_c.py
parentf939b3c0f76a9556cce458a4157a607a12c3d057 (diff)
downloadcpython-1451874e6be94ff1f0b68d84b466da4a16bddaf2.zip
cpython-1451874e6be94ff1f0b68d84b466da4a16bddaf2.tar.gz
cpython-1451874e6be94ff1f0b68d84b466da4a16bddaf2.tar.bz2
Backed out changeset 78bf34b6a713
Diffstat (limited to 'Lib/test/test_xml_etree_c.py')
-rw-r--r--Lib/test/test_xml_etree_c.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/Lib/test/test_xml_etree_c.py b/Lib/test/test_xml_etree_c.py
index 8d9bd17..98410c5 100644
--- a/Lib/test/test_xml_etree_c.py
+++ b/Lib/test/test_xml_etree_c.py
@@ -17,7 +17,6 @@ def sanity():
"""
-@unittest.skipUnless(cET, 'requires _elementtree')
class MiscTests(unittest.TestCase):
# Issue #8651.
@precisionbigmemtest(size=_2G + 100, memuse=1)
@@ -63,22 +62,12 @@ class MiscTests(unittest.TestCase):
del element.attrib
self.assertEqual(element.attrib, {'A': 'B', 'C': 'D'})
- def test_trashcan(self):
- # If this test fails, it will most likely die via segfault.
- e = root = cET.Element('root')
- for i in range(200000):
- e = cET.SubElement(e, 'x')
- del e
- del root
- test_support.gc_collect()
-
def test_main():
from test import test_xml_etree, test_xml_etree_c
# Run the tests specific to the C implementation
test_support.run_doctest(test_xml_etree_c, verbosity=True)
- test_support.run_unittest(MiscTests)
# Assign the C implementation before running the doctests
# Patch the __name__, to prevent confusion with the pure Python test