mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #19593: Use specific asserts in importlib tests.
This commit is contained in:
parent
3bc13cc8b0
commit
344f8316fd
5 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue