diff options
author | Brett Cannon <brett@python.org> | 2016-07-08 18:00:00 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2016-07-08 18:00:00 (GMT) |
commit | fdcdd9ed80d2b4bf7e7dac04ed2d22e9cb747ff6 (patch) | |
tree | f9a0574f99b8d6541266b0c61230a9052ee6d8ad /Lib/test/test_importlib | |
parent | 15552c39e09426988d9ad0901a2aafc624e46e33 (diff) | |
download | cpython-fdcdd9ed80d2b4bf7e7dac04ed2d22e9cb747ff6.zip cpython-fdcdd9ed80d2b4bf7e7dac04ed2d22e9cb747ff6.tar.gz cpython-fdcdd9ed80d2b4bf7e7dac04ed2d22e9cb747ff6.tar.bz2 |
Issue #26896: Disambiguate uses of "importer" with "finder".
Thanks to Oren Milman for the patch.
Diffstat (limited to 'Lib/test/test_importlib')
-rw-r--r-- | Lib/test/test_importlib/import_/test_meta_path.py | 1 | ||||
-rw-r--r-- | Lib/test/test_importlib/util.py | 1 |
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 ce20377..f72dc45 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)) |