mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Rename importlib.test.support to importlib.test.util.
This commit is contained in:
parent
ae9ad186d0
commit
bcb26c53c0
22 changed files with 163 additions and 191 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue