diff -r 259c82332199 Lib/test/test_importlib/builtin/test_finder.py --- a/Lib/test/test_importlib/builtin/test_finder.py Sun Nov 17 16:08:23 2013 -0600 +++ b/Lib/test/test_importlib/builtin/test_finder.py Sun Nov 17 22:46:56 2013 -0600 @@ -18,21 +18,11 @@ found = self.machinery.BuiltinImporter.find_module(builtin_util.NAME) self.assertTrue(found) - def test_package(self): - # Built-in modules cannot be a package. - pass + # Built-in modules cannot be a package. + test_package = test_package_in_package = test_package_over_module = None - def test_module_in_package(self): - # Built-in modules cannobt be in a package. - pass - - def test_package_in_package(self): - # Built-in modules cannot be a package. - pass - - def test_package_over_module(self): - # Built-in modules cannot be a package. - pass + # Built-in modules cannot be in a package. + test_module_in_package = None def test_failure(self): assert 'importlib' not in sys.builtin_module_names diff -r 259c82332199 Lib/test/test_importlib/builtin/test_loader.py --- a/Lib/test/test_importlib/builtin/test_loader.py Sun Nov 17 16:08:23 2013 -0600 +++ b/Lib/test/test_importlib/builtin/test_loader.py Sun Nov 17 22:46:56 2013 -0600 @@ -33,17 +33,11 @@ module = self.load_module(builtin_util.NAME) self.verify(module) - def test_package(self): - # Built-in modules cannot be a package. - pass + # Built-in modules cannot be a package. + test_package = test_lacking_parent = None - def test_lacking_parent(self): - # Built-in modules cannot be a package. - pass - - def test_state_after_failure(self): - # Not way to force an imoprt failure. - pass + # No way to force an import failure. + test_state_after_failure = None def test_module_reuse(self): # Test that the same module is used in a reload. diff -r 259c82332199 Lib/test/test_importlib/extension/test_finder.py --- a/Lib/test/test_importlib/extension/test_finder.py Sun Nov 17 16:08:23 2013 -0600 +++ b/Lib/test/test_importlib/extension/test_finder.py Sun Nov 17 22:46:56 2013 -0600 @@ -20,21 +20,14 @@ def test_module(self): self.assertTrue(self.find_module(util.NAME)) - def test_package(self): - # No extension module as an __init__ available for testing. - pass + # No extension module as an __init__ available for testing. + test_package = test_package_in_package = None - def test_module_in_package(self): - # No extension module in a package available for testing. - pass + # No extension module in a package available for testing. + test_module_in_package = None - def test_package_in_package(self): - # No extension module as an __init__ available for testing. - pass - - def test_package_over_module(self): - # Extension modules cannot be an __init__ for a package. - pass + # Extension modules cannot be an __init__ for a package. + test_package_over_module = None def test_failure(self): self.assertIsNone(self.find_module('asdfjkl;')) diff -r 259c82332199 Lib/test/test_importlib/extension/test_loader.py --- a/Lib/test/test_importlib/extension/test_loader.py Sun Nov 17 16:08:23 2013 -0600 +++ b/Lib/test/test_importlib/extension/test_loader.py Sun Nov 17 22:46:56 2013 -0600 @@ -39,13 +39,11 @@ self.assertIsInstance(module.__loader__, self.machinery.ExtensionFileLoader) - def test_package(self): - # No extension module as __init__ available for testing. - pass + # No extension module as __init__ available for testing. + test_package = None - def test_lacking_parent(self): - # No extension module in a package available for testing. - pass + # No extension module in a package available for testing. + test_lacking_parent = None def test_module_reuse(self): with util.uncache(ext_util.NAME): @@ -53,9 +51,8 @@ module2 = self.load_module(ext_util.NAME) self.assertIs(module1, module2) - def test_state_after_failure(self): - # No easy way to trigger a failure after a successful import. - pass + # No easy way to trigger a failure after a successful import. + test_state_after_failure = None def test_unloadable(self): name = 'asdfjkl;' diff -r 259c82332199 Lib/test/test_importlib/frozen/test_finder.py --- a/Lib/test/test_importlib/frozen/test_finder.py Sun Nov 17 16:08:23 2013 -0600 +++ b/Lib/test/test_importlib/frozen/test_finder.py Sun Nov 17 22:46:56 2013 -0600 @@ -27,13 +27,11 @@ loader = self.find('__phello__.spam', ['__phello__']) self.assertTrue(hasattr(loader, 'load_module')) - def test_package_in_package(self): - # No frozen package within another package to test with. - pass + # No frozen package within another package to test with. + test_package_in_package = None - def test_package_over_module(self): - # No easy way to test. - pass + # No easy way to test. + test_package_over_module = None def test_failure(self): loader = self.find('') diff -r 259c82332199 Lib/test/test_importlib/frozen/test_loader.py --- a/Lib/test/test_importlib/frozen/test_loader.py Sun Nov 17 16:08:23 2013 -0600 +++ b/Lib/test/test_importlib/frozen/test_loader.py Sun Nov 17 22:46:56 2013 -0600 @@ -68,9 +68,8 @@ self.assertEqual(repr(module), "") - def test_state_after_failure(self): - # No way to trigger an error in a frozen module. - pass + # No way to trigger an error in a frozen module. + test_state_after_failure = None def test_unloadable(self): assert self.machinery.FrozenImporter.find_module('_not_real') is None