Rename importlib.test.support to importlib.test.util.

This commit is contained in:
Brett Cannon 2009-02-01 04:00:05 +00:00
parent ae9ad186d0
commit bcb26c53c0
22 changed files with 163 additions and 191 deletions

View file

@ -1,7 +1,7 @@
import importlib
from . import test_path_hook
from .. import abc
from .. import support
from .. import util
import sys
import unittest
@ -18,7 +18,7 @@ class LoaderTests(abc.LoaderTests):
return loader.load_module(fullname)
def test_module(self):
with support.uncache(test_path_hook.NAME):
with util.uncache(test_path_hook.NAME):
module = self.load_module(test_path_hook.NAME)
for attr, value in [('__name__', test_path_hook.NAME),
('__file__', test_path_hook.FILEPATH)]:
@ -34,7 +34,7 @@ class LoaderTests(abc.LoaderTests):
pass
def test_module_reuse(self):
with support.uncache(test_path_hook.NAME):
with util.uncache(test_path_hook.NAME):
module1 = self.load_module(test_path_hook.NAME)
module2 = self.load_module(test_path_hook.NAME)
self.assert_(module1 is module2)