mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
gh-120417: Add #noqa: F401 to tests (#120627)
Ignore linter "imported but unused" warnings in tests when the linter doesn't understand how the import is used.
This commit is contained in:
parent
7e189aed64
commit
e9f4d80fa6
24 changed files with 43 additions and 41 deletions
|
@ -737,7 +737,7 @@ class CmdLineTest(unittest.TestCase):
|
|||
|
||||
# Memory allocator debug hooks
|
||||
try:
|
||||
import _testinternalcapi
|
||||
import _testinternalcapi # noqa: F401
|
||||
except ImportError:
|
||||
pass
|
||||
else:
|
||||
|
@ -754,7 +754,7 @@ class CmdLineTest(unittest.TestCase):
|
|||
|
||||
# Faulthandler
|
||||
try:
|
||||
import faulthandler
|
||||
import faulthandler # noqa: F401
|
||||
except ImportError:
|
||||
pass
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue