mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-71339: Use new assertion methods in test_import and test_importlib (GH-129052)
This commit is contained in:
parent
da310d209a
commit
f7cc7d296c
18 changed files with 51 additions and 54 deletions
|
|
@ -21,7 +21,7 @@ def hook(self, entry):
|
|||
def test_success(self):
|
||||
# Path hook should handle a directory where a known extension module
|
||||
# exists.
|
||||
self.assertTrue(hasattr(self.hook(util.EXTENSIONS.path), 'find_spec'))
|
||||
self.assertHasAttr(self.hook(util.EXTENSIONS.path), 'find_spec')
|
||||
|
||||
|
||||
(Frozen_PathHooksTests,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue