diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2012-08-02 11:26:03 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2012-08-02 11:26:03 (GMT) |
commit | 8a9080feffc757360d0d73e4173189586098ffb5 (patch) | |
tree | 9199a6a30f436fcc310ad16ff64f145f00822e2c /Lib/test/test_importlib/test_abc.py | |
parent | a90f311d0592f6ab56068441413a1925bd7393f4 (diff) | |
download | cpython-8a9080feffc757360d0d73e4173189586098ffb5.zip cpython-8a9080feffc757360d0d73e4173189586098ffb5.tar.gz cpython-8a9080feffc757360d0d73e4173189586098ffb5.tar.bz2 |
Issue #15502: Bring the importlib ABCs into line with the current state of the import protocols given PEP 420. Original patch by Eric Snow.
Diffstat (limited to 'Lib/test/test_importlib/test_abc.py')
-rw-r--r-- | Lib/test/test_importlib/test_abc.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/test_importlib/test_abc.py b/Lib/test/test_importlib/test_abc.py index 008bd21..90f38b8 100644 --- a/Lib/test/test_importlib/test_abc.py +++ b/Lib/test/test_importlib/test_abc.py @@ -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): |