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_re.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_re.py')
-rw-r--r-- | Lib/test/test_re.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index d8c839d..1f2ab60 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -13,7 +13,7 @@ from weakref import proxy # some platforms lack working multiprocessing try: - import _multiprocessing + import _multiprocessing # noqa: F401 except ImportError: multiprocessing = None else: @@ -1228,7 +1228,7 @@ class ReTests(unittest.TestCase): newpat = pickle.loads(pickled) self.assertEqual(newpat, oldpat) # current pickle expects the _compile() reconstructor in re module - from re import _compile + from re import _compile # noqa: F401 def test_copying(self): import copy |