mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +00:00
Split out support code that is specific to source tests out of
importlib.test.support to importlib.test.source.util.
This commit is contained in:
parent
30b047dc35
commit
4ee2cdaf65
8 changed files with 123 additions and 113 deletions
|
@ -1,5 +1,5 @@
|
|||
import importlib
|
||||
from .. import support
|
||||
from . import util
|
||||
import unittest
|
||||
|
||||
|
||||
|
@ -9,7 +9,7 @@ class PathHookTest(unittest.TestCase):
|
|||
|
||||
def test_success(self):
|
||||
# XXX Only work on existing directories?
|
||||
with support.create_modules('dummy') as mapping:
|
||||
with util.create_modules('dummy') as mapping:
|
||||
self.assert_(hasattr(importlib.FileImporter(mapping['.root']),
|
||||
'find_module'))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue