]> granicus.if.org Git - python/commitdiff
Fix xml_etree_c test error (follow up of issue #13988).
authorFlorent Xicluna <florent.xicluna@gmail.com>
Mon, 13 Feb 2012 11:14:52 +0000 (12:14 +0100)
committerFlorent Xicluna <florent.xicluna@gmail.com>
Mon, 13 Feb 2012 11:14:52 +0000 (12:14 +0100)
Lib/test/test_xml_etree_c.py

index 0fed7c11ff07fc31aa4254b8cdbd81d241912400..6f6200933d99a953911c14a6b2b50a284f183e76 100644 (file)
@@ -1,9 +1,11 @@
 # xml.etree test for cElementTree
 
 from test import support
+from test.support import import_fresh_module
 import unittest
 
-from xml.etree import ElementTree as cET, cElementTree as cET_alias
+cET = import_fresh_module('xml.etree.ElementTree', fresh=['_elementtree'])
+cET_alias = import_fresh_module('xml.etree.cElementTree', fresh=['_elementtree'])
 
 
 # cElementTree specific tests