mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Issue #15502: Bring the importlib ABCs into line with the current state of the import protocols given PEP 420. Original patch by Eric Snow.
This commit is contained in:
parent
a90f311d05
commit
8a9080feff
5 changed files with 127 additions and 65 deletions
|
@ -30,11 +30,16 @@ class InheritanceTests:
|
|||
"{0} is not a superclass of {1}".format(superclass, self.__test))
|
||||
|
||||
|
||||
class Finder(InheritanceTests, unittest.TestCase):
|
||||
class MetaPathFinder(InheritanceTests, unittest.TestCase):
|
||||
|
||||
superclasses = [abc.Finder]
|
||||
subclasses = [machinery.BuiltinImporter, machinery.FrozenImporter,
|
||||
machinery.PathFinder]
|
||||
|
||||
class PathEntryFinder(InheritanceTests, unittest.TestCase):
|
||||
|
||||
superclasses = [abc.Finder]
|
||||
subclasses = [machinery.FileFinder]
|
||||
|
||||
class Loader(InheritanceTests, unittest.TestCase):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue