Lines Matching refs:pyET
33 # pyET is the pure-Python implementation.
35 # ET is pyET in test_xml_etree and is the C accelerated version in
37 pyET = None
169 cls.modules = {pyET, ET}
178 # pyET must be second, because pyET may be (equal to) ET.
179 human = dict([(ET, "cET"), (pyET, "pyET")])
187 self.assertIsInstance(alice, (ET.Element, pyET.Element))
188 self.assertIsInstance(bob, (ET.Element, pyET.Element))
1766 # of ElementInclude uses the pyET parser for cET tests.
3959 if not pyET:
3962 # Test that the C accelerator was not imported for pyET
3967 self.assertIsInstance(pyET.Element.__init__, types.FunctionType)
3968 self.assertIsInstance(pyET.XMLParser.__init__, types.FunctionType)
3974 return pyET.canonicalize(xml, **options)
4207 # When invoked without a module, runs the Python ET tests by loading pyET.
4209 global pyET
4210 pyET = import_fresh_module('xml.etree.ElementTree',
4213 module = pyET
4240 # _elementtree. We can't use skipUnless here, because pyET is filled in only
4242 if pyET is not ET:
4272 ET = pyET = None