Issue #19593: Use specific asserts in importlib tests.

This commit is contained in:
Serhiy Storchaka 2014-07-07 14:08:19 +03:00
parent 3bc13cc8b0
commit 344f8316fd
5 changed files with 7 additions and 7 deletions

View file

@ -783,7 +783,7 @@ class SourceOnlyLoaderTests(SourceLoaderTestHarness):
warnings.simplefilter('ignore', DeprecationWarning)
module = self.loader.load_module(self.name)
self.verify_module(module)
self.assertTrue(not hasattr(module, '__path__'))
self.assertFalse(hasattr(module, '__path__'))
def test_get_source_encoding(self):
# Source is considered encoded in UTF-8 by default unless otherwise