1. Sebastian Rahlf
  2. python-amazon-product-api

Commits

Sebastian Rahlf  committed 736a204

Bugfix: Forgot to add list of etree implementations.

  • Participants
  • Parent commits 5fc1260
  • Branches default

Comments (0)

Files changed (1)

File tests/__init__.py

View file
  • Ignore whitespace
 #: Locales to test against. 
 TESTABLE_LOCALES = HOSTS.keys()
 
+ELEMENTTREE_IMPLEMENTATIONS = [
+    'lxml.etree',
+    'xml.etree.cElementTree',
+    'xml.etree.ElementTree',
+    'cElementTree',
+    'elementtree.ElementTree',
+    'elementtree.ElementTree'
+]
+
 #: Result processors to test with.
 TESTABLE_PROCESSORS = {
     'objectify': objectify.Processor,
-    'etree': etree.Processor,
-#    'minidom': minidom.Processor,
+    #    'minidom': minidom.Processor,
 }
+# add ElementTree implementations
+for mod in ELEMENTTREE_IMPLEMENTATIONS:
+    TESTABLE_PROCESSORS[mod] = etree.Processor(module=mod)
 
 def get_config_value(key, default=None):
     """