[Lxml-checkins] r46269 - lxml/trunk/src/lxml/tests

scoder at codespeak.net scoder at codespeak.net
Mon Sep 3 13:43:01 CEST 2007


Author: scoder
Date: Mon Sep  3 13:43:00 2007
New Revision: 46269

Modified:
   lxml/trunk/src/lxml/tests/common_imports.py
Log:
additional test import of cElementTree

Modified: lxml/trunk/src/lxml/tests/common_imports.py
==============================================================================
--- lxml/trunk/src/lxml/tests/common_imports.py	(original)
+++ lxml/trunk/src/lxml/tests/common_imports.py	Mon Sep  3 13:43:00 2007
@@ -14,6 +14,14 @@
         ElementTree = None
 
 try:
+    from xml.etree import cElementTree # Python 2.5
+except ImportError:
+    try:
+        from celementtree import cElementTree # standard ET
+    except ImportError:
+        cElementTree = None
+
+try:
     import doctest
     # check if the system version has everything we need
     doctest.DocFileSuite


More information about the lxml-checkins mailing list