mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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,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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue