[Python-checkins] cpython: Fix another import error.
brett.cannon
python-checkins at python.org
Fri Jul 20 21:42:41 CEST 2012
http://hg.python.org/cpython/rev/e2787e926969
changeset: 78204:e2787e926969
user: Brett Cannon <brett at python.org>
date: Fri Jul 20 15:42:34 2012 -0400
summary:
Fix another import error.
files:
Lib/test/test_namespace_pkgs.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/test/test_namespace_pkgs.py b/Lib/test/test_namespace_pkgs.py
--- a/Lib/test/test_namespace_pkgs.py
+++ b/Lib/test/test_namespace_pkgs.py
@@ -3,7 +3,7 @@
import unittest
import os
-import importlib.test.util
+from test.test_importlib import util
from test.support import run_unittest
# needed tests:
@@ -46,7 +46,7 @@
# use default meta_path and path_hooks unless specified otherwise
kwargs.setdefault('meta_path', sys.meta_path)
kwargs.setdefault('path_hooks', sys.path_hooks)
- import_context = importlib.test.util.import_state(**kwargs)
+ import_context = util.import_state(**kwargs)
with import_context, sys_modules_context():
yield
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list