mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
make TestAccelerator[Not]Imported for ElementTree more robust
This commit is contained in:
parent
66e6f8e525
commit
292f9a891d
2 changed files with 3 additions and 9 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue