diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-03-22 12:31:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-22 12:31:38 (GMT) |
commit | b33e52511a59c6da7132c226b7f7489b092a33eb (patch) | |
tree | c8829fbaefadf80e46e5c36f42ec6b22fd7ec124 /Lib/test/test_xml_etree_c.py | |
parent | b146568dfcbcd7409c724f8917e4f77433dd56e4 (diff) | |
download | cpython-b33e52511a59c6da7132c226b7f7489b092a33eb.zip cpython-b33e52511a59c6da7132c226b7f7489b092a33eb.tar.gz cpython-b33e52511a59c6da7132c226b7f7489b092a33eb.tar.bz2 |
bpo-36543: Remove the xml.etree.cElementTree module. (GH-19108)
Diffstat (limited to 'Lib/test/test_xml_etree_c.py')
-rw-r--r-- | Lib/test/test_xml_etree_c.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/Lib/test/test_xml_etree_c.py b/Lib/test/test_xml_etree_c.py index 2144d20..15496fd 100644 --- a/Lib/test/test_xml_etree_c.py +++ b/Lib/test/test_xml_etree_c.py @@ -8,9 +8,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') @@ -156,14 +153,6 @@ class MiscTests(unittest.TestCase): @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): # Test that the C accelerator was imported, as expected @@ -171,9 +160,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 @@ -213,7 +199,6 @@ def test_main(): # Run the tests specific to the C implementation support.run_unittest( MiscTests, - TestAliasWorking, TestAcceleratorImported, SizeofTest, ) |