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:
Victor Stinner 2024-06-18 17:51:47 +02:00 committed by GitHub
parent 7e189aed64
commit e9f4d80fa6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 43 additions and 41 deletions

View file

@ -10,7 +10,7 @@ import sys
def import_singlephase():
assert '_testsinglephase' not in sys.modules
try:
import _testsinglephase
import _testsinglephase # noqa: F401
except ImportError:
sys.modules.pop('_testsinglephase', None)
return False