summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-06-18 15:51:47 (GMT)
committerGitHub <noreply@github.com>2024-06-18 15:51:47 (GMT)
commite9f4d80fa66e0d3331e79d539329747297e54ae5 (patch)
treee0626fbefc111356f3419a484bd7d05514e08b0b /Lib/test/test_asyncio
parent7e189aed6450c0aebcdd6ff6aefe29e2f45b173a (diff)
downloadcpython-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_asyncio')
-rw-r--r--Lib/test/test_asyncio/test_tasks.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
index 5b09c81..cc0d7f5 100644
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -3103,14 +3103,14 @@ class GenericTaskTests(test_utils.TestCase):
# fail on systems where C modules were successfully compiled
# (hence the test for _functools etc), but _asyncio somehow didn't.
try:
- import _functools
- import _json
- import _pickle
+ import _functools # noqa: F401
+ import _json # noqa: F401
+ import _pickle # noqa: F401
except ImportError:
self.skipTest('C modules are not available')
else:
try:
- import _asyncio
+ import _asyncio # noqa: F401
except ImportError:
self.fail('_asyncio module is missing')