mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Issue #14605: Rename _SourcelessFileLoader to SourcelessFileLoader.
This time also recreating the Python/importlib.h file to make make happy. See the ticket for details.
This commit is contained in:
parent
ac8805a01a
commit
4fe29c9657
11 changed files with 1445 additions and 1448 deletions
|
@ -24,7 +24,7 @@ class CaseSensitivityTest(unittest.TestCase):
|
|||
(_bootstrap.SourceFileLoader,
|
||||
_bootstrap._suffix_list(imp.PY_SOURCE),
|
||||
True),
|
||||
(_bootstrap._SourcelessFileLoader,
|
||||
(_bootstrap.SourcelessFileLoader,
|
||||
_bootstrap._suffix_list(imp.PY_COMPILED),
|
||||
True))
|
||||
return finder.find_module(self.name)
|
||||
|
|
|
@ -379,7 +379,7 @@ class SourceLoaderBadBytecodeTest(BadBytecodeTest):
|
|||
|
||||
class SourcelessLoaderBadBytecodeTest(BadBytecodeTest):
|
||||
|
||||
loader = _bootstrap._SourcelessFileLoader
|
||||
loader = _bootstrap.SourcelessFileLoader
|
||||
|
||||
def test_empty_file(self):
|
||||
def test(name, mapping, bytecode_path):
|
||||
|
|
|
@ -38,7 +38,7 @@ class FinderTests(abc.FinderTests):
|
|||
def import_(self, root, module):
|
||||
loader_details = [(_bootstrap.SourceFileLoader,
|
||||
_bootstrap._suffix_list(imp.PY_SOURCE), True),
|
||||
(_bootstrap._SourcelessFileLoader,
|
||||
(_bootstrap.SourcelessFileLoader,
|
||||
_bootstrap._suffix_list(imp.PY_COMPILED), True)]
|
||||
finder = _bootstrap.FileFinder(root, *loader_details)
|
||||
return finder.find_module(module)
|
||||
|
|
|
@ -62,7 +62,7 @@ class ExecutionLoader(InheritanceTests, unittest.TestCase):
|
|||
class FileLoader(InheritanceTests, unittest.TestCase):
|
||||
|
||||
superclasses = [abc.ResourceLoader, abc.ExecutionLoader]
|
||||
subclasses = [machinery.SourceFileLoader, machinery._SourcelessFileLoader]
|
||||
subclasses = [machinery.SourceFileLoader, machinery.SourcelessFileLoader]
|
||||
|
||||
|
||||
class SourceLoader(InheritanceTests, unittest.TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue