Issue #14605: Revert renaming of _SourcelessFileLoader, since it caused

the buildbots to fail.
This commit is contained in:
Marc-Andre Lemburg 2012-04-25 02:11:07 +02:00
parent 2945e78b05
commit ac8805a01a
10 changed files with 18 additions and 15 deletions

View file

@ -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)

View file

@ -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):

View file

@ -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)

View file

@ -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):