mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Separate out finder for source and source/bytecode.
This commit is contained in:
parent
2dee597e05
commit
4afab6b30b
4 changed files with 21 additions and 10 deletions
|
@ -19,7 +19,7 @@ class CaseSensitivityTest(unittest.TestCase):
|
|||
assert name != name.lower()
|
||||
|
||||
def find(self, path):
|
||||
finder = importlib.PyFileFinder(path)
|
||||
finder = importlib.PyPycFileFinder(path)
|
||||
return finder.find_module(self.name)
|
||||
|
||||
def sensitivity_test(self):
|
||||
|
|
|
@ -32,7 +32,7 @@ class FinderTests(abc.FinderTests):
|
|||
"""
|
||||
|
||||
def import_(self, root, module):
|
||||
finder = importlib.PyFileFinder(root)
|
||||
finder = importlib.PyPycFileFinder(root)
|
||||
return finder.find_module(module)
|
||||
|
||||
def run_test(self, test, create=None, *, compile_=None, unlink=None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue