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_utf8source.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_utf8source.py')
-rw-r--r-- | Lib/test/test_utf8source.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_utf8source.py b/Lib/test/test_utf8source.py index c42b6aa..7336cf0 100644 --- a/Lib/test/test_utf8source.py +++ b/Lib/test/test_utf8source.py @@ -14,7 +14,7 @@ class PEP3120Test(unittest.TestCase): def test_badsyntax(self): try: - import test.tokenizedata.badsyntax_pep3120 + import test.tokenizedata.badsyntax_pep3120 # noqa: F401 except SyntaxError as msg: msg = str(msg).lower() self.assertTrue('utf-8' in msg) |