mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +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
|
|
@ -87,7 +87,7 @@ class InspectLoaderTests:
|
|||
def test_is_package(self):
|
||||
# Cannot be a package.
|
||||
result = self.machinery.BuiltinImporter.is_package(builtin_util.NAME)
|
||||
self.assertTrue(not result)
|
||||
self.assertFalse(result)
|
||||
|
||||
def test_not_builtin(self):
|
||||
# Modules not built-in should raise ImportError.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue