diff options
author | Brett Cannon <brett@python.org> | 2013-06-15 22:39:21 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-06-15 22:39:21 (GMT) |
commit | ef888024d86eccb29b10d55066fa33c3aa54a586 (patch) | |
tree | 4c0c1bc6f81312987817d9a3d8358d4d16f9f330 /Lib/test/test_importlib/extension/test_case_sensitivity.py | |
parent | 53e600c24a9a7159d5396432e1228b3dbd80eb19 (diff) | |
download | cpython-ef888024d86eccb29b10d55066fa33c3aa54a586.zip cpython-ef888024d86eccb29b10d55066fa33c3aa54a586.tar.gz cpython-ef888024d86eccb29b10d55066fa33c3aa54a586.tar.bz2 |
Issue #17177: stop using imp in test_importlib
Diffstat (limited to 'Lib/test/test_importlib/extension/test_case_sensitivity.py')
-rw-r--r-- | Lib/test/test_importlib/extension/test_case_sensitivity.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/test/test_importlib/extension/test_case_sensitivity.py b/Lib/test/test_importlib/extension/test_case_sensitivity.py index 76c53e4..2b536e2 100644 --- a/Lib/test/test_importlib/extension/test_case_sensitivity.py +++ b/Lib/test/test_importlib/extension/test_case_sensitivity.py @@ -1,8 +1,9 @@ -import imp import sys from test import support import unittest + from importlib import _bootstrap +from importlib import machinery from .. import util from . import util as ext_util @@ -14,9 +15,9 @@ class ExtensionModuleCaseSensitivityTest(unittest.TestCase): good_name = ext_util.NAME bad_name = good_name.upper() assert good_name != bad_name - finder = _bootstrap.FileFinder(ext_util.PATH, - (_bootstrap.ExtensionFileLoader, - _bootstrap.EXTENSION_SUFFIXES)) + finder = machinery.FileFinder(ext_util.PATH, + (machinery.ExtensionFileLoader, + machinery.EXTENSION_SUFFIXES)) return finder.find_module(bad_name) def test_case_sensitive(self): |