summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_importlib
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2016-09-07 07:52:20 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2016-09-07 07:52:20 (GMT)
commit32d374215a514915eca892e5c58a61e9494f37af (patch)
treea5eb60bfa6e5a1f28bedd4042460a22fce720fca /Lib/test/test_importlib
parente848cd7605a7891378ef1463e933939aa253df71 (diff)
downloadcpython-32d374215a514915eca892e5c58a61e9494f37af.zip
cpython-32d374215a514915eca892e5c58a61e9494f37af.tar.gz
cpython-32d374215a514915eca892e5c58a61e9494f37af.tar.bz2
[backport to 3.5] - issue26896 - Disambiguate uses of "importer" with "finder".
Diffstat (limited to 'Lib/test/test_importlib')
-rw-r--r--Lib/test/test_importlib/import_/test_meta_path.py1
-rw-r--r--Lib/test/test_importlib/util.py1
2 files changed, 0 insertions, 2 deletions
diff --git a/Lib/test/test_importlib/import_/test_meta_path.py b/Lib/test/test_importlib/import_/test_meta_path.py
index c452cdd..5a41e89 100644
--- a/Lib/test/test_importlib/import_/test_meta_path.py
+++ b/Lib/test/test_importlib/import_/test_meta_path.py
@@ -76,7 +76,6 @@ class CallSignature:
self.__import__(mod_name)
assert len(log) == 1
args = log[0][0]
- kwargs = log[0][1]
# Assuming all arguments are positional.
self.assertEqual(args[0], mod_name)
self.assertIsNone(args[1])
diff --git a/Lib/test/test_importlib/util.py b/Lib/test/test_importlib/util.py
index 43896c5..64e039e 100644
--- a/Lib/test/test_importlib/util.py
+++ b/Lib/test/test_importlib/util.py
@@ -266,7 +266,6 @@ class mock_spec(_ImporterMock):
module = self.modules[fullname]
except KeyError:
return None
- is_package = hasattr(module, '__path__')
spec = util.spec_from_file_location(
fullname, module.__file__, loader=self,
submodule_search_locations=getattr(module, '__path__', None))