[Python-checkins] cpython: Fix xml_etree_c test error (follow up of issue #13988).
florent.xicluna
python-checkins at python.org
Mon Feb 13 12:15:17 CET 2012
http://hg.python.org/cpython/rev/e9cf34d56ff1
changeset: 74904:e9cf34d56ff1
user: Florent Xicluna <florent.xicluna at gmail.com>
date: Mon Feb 13 12:14:52 2012 +0100
summary:
Fix xml_etree_c test error (follow up of issue #13988).
files:
Lib/test/test_xml_etree_c.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_xml_etree_c.py b/Lib/test/test_xml_etree_c.py
--- 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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list