diff --git a/Doc/library/xml.etree.elementtree.rst b/Doc/library/xml.etree.elementtree.rst index 0cb949a9f4..791f0b44b8 100644 --- a/Doc/library/xml.etree.elementtree.rst +++ b/Doc/library/xml.etree.elementtree.rst @@ -15,7 +15,6 @@ for parsing and creating XML data. .. versionchanged:: 3.3 This module will use a fast implementation whenever available. - The :mod:`xml.etree.cElementTree` module is deprecated. .. warning:: diff --git a/Lib/test/test_xml_etree_c.py b/Lib/test/test_xml_etree_c.py index 765652ff75..f023fe9ee7 100644 --- a/Lib/test/test_xml_etree_c.py +++ b/Lib/test/test_xml_etree_c.py @@ -7,9 +7,6 @@ import unittest cET = import_fresh_module('xml.etree.ElementTree', fresh=['_elementtree']) -cET_alias = import_fresh_module('xml.etree.cElementTree', - fresh=['_elementtree', 'xml.etree'], - deprecated=True) @unittest.skipUnless(cET, 'requires _elementtree') @@ -118,14 +115,6 @@ class MiscTests(unittest.TestCase): elem.__setstate__({'tag': 42}) # shouldn't cause an assertion failure -@unittest.skipUnless(cET, 'requires _elementtree') -class TestAliasWorking(unittest.TestCase): - # Test that the cET alias module is alive - def test_alias_working(self): - e = cET_alias.Element('foo') - self.assertEqual(e.tag, 'foo') - - @unittest.skipUnless(cET, 'requires _elementtree') @support.cpython_only class TestAcceleratorImported(unittest.TestCase): @@ -134,9 +123,6 @@ class TestAcceleratorImported(unittest.TestCase): # SubElement is a function so it retains _elementtree as its module. self.assertEqual(cET.SubElement.__module__, '_elementtree') - def test_correct_import_cET_alias(self): - self.assertEqual(cET_alias.SubElement.__module__, '_elementtree') - def test_parser_comes_from_C(self): # The type of methods defined in Python code is types.FunctionType, # while the type of methods defined inside _elementtree is @@ -176,7 +162,6 @@ def test_main(): # Run the tests specific to the C implementation support.run_unittest( MiscTests, - TestAliasWorking, TestAcceleratorImported, SizeofTest, )