summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/test/source/test_path_hook.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-02-21 03:15:37 (GMT)
committerBrett Cannon <bcannon@gmail.com>2009-02-21 03:15:37 (GMT)
commit2dee597e0593a8f7b477f58afe5e46f94b994541 (patch)
treeb3ddcc23c894a377ff78502209998aeae4f37dc7 /Lib/importlib/test/source/test_path_hook.py
parenta2fcb1d964af0a0aa5cecb7e37f8abe7d0a1f867 (diff)
downloadcpython-2dee597e0593a8f7b477f58afe5e46f94b994541.zip
cpython-2dee597e0593a8f7b477f58afe5e46f94b994541.tar.gz
cpython-2dee597e0593a8f7b477f58afe5e46f94b994541.tar.bz2
Do some cleanup in importlib:
+ Ditch using arguments to super(). + Ditch subclassing from object directly. + Move directory check out of chaining path hook to file path hook/finder. + Rename some classes to better reflect they are finders, not importers.
Diffstat (limited to 'Lib/importlib/test/source/test_path_hook.py')
-rw-r--r--Lib/importlib/test/source/test_path_hook.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/test/source/test_path_hook.py b/Lib/importlib/test/source/test_path_hook.py
index 5aac42e..9a4ccbe 100644
--- a/Lib/importlib/test/source/test_path_hook.py
+++ b/Lib/importlib/test/source/test_path_hook.py
@@ -10,7 +10,7 @@ class PathHookTest(unittest.TestCase):
def test_success(self):
# XXX Only work on existing directories?
with source_util.create_modules('dummy') as mapping:
- self.assert_(hasattr(importlib.FileImporter(mapping['.root']),
+ self.assert_(hasattr(importlib.FileFinder(mapping['.root']),
'find_module'))