From 6c3da6ebc22e3dfef0e826e04188d5a1cf3a320f Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Mon, 13 Feb 2012 12:14:52 +0100 Subject: Fix xml_etree_c test error (follow up of issue #13988). --- Lib/test/test_xml_etree_c.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_xml_etree_c.py b/Lib/test/test_xml_etree_c.py index 0fed7c1..6f62009 100644 --- a/Lib/test/test_xml_etree_c.py +++ b/Lib/test/test_xml_etree_c.py @@ -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 -- cgit v0.12