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,6 +1,6 @@
from importlib import machinery
from .. import abc
from .. import support
from .. import util
import sys
import unittest
@ -14,7 +14,7 @@ class FinderTests(abc.FinderTests):
def test_module(self):
# Common case.
with support.uncache(self.name):
with util.uncache(self.name):
self.assert_(machinery.BuiltinImporter.find_module(self.name))
def test_package(self):
@ -40,7 +40,7 @@ class FinderTests(abc.FinderTests):
def test_ignore_path(self):
# The value for 'path' should always trigger a failed import.
with support.uncache(self.name):
with util.uncache(self.name):
loader = machinery.BuiltinImporter.find_module(self.name, ['pkg'])
self.assert_(loader is None)