diff options
author | Victor Stinner <vstinner@python.org> | 2024-06-18 15:51:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-18 15:51:47 (GMT) |
commit | e9f4d80fa66e0d3331e79d539329747297e54ae5 (patch) | |
tree | e0626fbefc111356f3419a484bd7d05514e08b0b /Lib/test/test_site.py | |
parent | 7e189aed6450c0aebcdd6ff6aefe29e2f45b173a (diff) | |
download | cpython-e9f4d80fa66e0d3331e79d539329747297e54ae5.zip cpython-e9f4d80fa66e0d3331e79d539329747297e54ae5.tar.gz cpython-e9f4d80fa66e0d3331e79d539329747297e54ae5.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/test_site.py')
-rw-r--r-- | Lib/test/test_site.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index 0502181..bcdc232 100644 --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -513,7 +513,7 @@ class ImportSideEffectTests(unittest.TestCase): # If sitecustomize is available, it should have been imported. if "sitecustomize" not in sys.modules: try: - import sitecustomize + import sitecustomize # noqa: F401 except ImportError: pass else: |