diff options
author | Eli Bendersky <eliben@gmail.com> | 2012-02-16 17:55:29 (GMT) |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2012-02-16 17:55:29 (GMT) |
commit | 292f9a891d214fd5098bedb9b4117fc9c36a0fe7 (patch) | |
tree | 0910647b755734a8ea8912a699acabfec07e6379 /Lib/test/test_xml_etree.py | |
parent | 66e6f8e525f9297ad4b8cd61705e761473b9674e (diff) | |
download | cpython-292f9a891d214fd5098bedb9b4117fc9c36a0fe7.zip cpython-292f9a891d214fd5098bedb9b4117fc9c36a0fe7.tar.gz cpython-292f9a891d214fd5098bedb9b4117fc9c36a0fe7.tar.bz2 |
make TestAccelerator[Not]Imported for ElementTree more robust
Diffstat (limited to 'Lib/test/test_xml_etree.py')
-rw-r--r-- | Lib/test/test_xml_etree.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_xml_etree.py b/Lib/test/test_xml_etree.py index 0d1eb22..6060e06 100644 --- a/Lib/test/test_xml_etree.py +++ b/Lib/test/test_xml_etree.py @@ -1907,9 +1907,7 @@ class CleanContext(object): class TestAcceleratorNotImported(unittest.TestCase): # Test that the C accelerator was not imported for pyET def test_correct_import_pyET(self): - # In the C accelerator, Element is just a factory function, not an - # actual class. In the Python version it's a class. - self.assertIsInstance(pyET.Element, type) + self.assertEqual(pyET.Element.__module__, 'xml.etree.ElementTree') def test_main(module=pyET): |