summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-06-13 14:14:50 (GMT)
committerGitHub <noreply@github.com>2024-06-13 14:14:50 (GMT)
commit6ae254aaa0a5a3985a52d1ab387a2b68c001bd96 (patch)
tree09a2b03e9721203f5b6b523fbb26db13f36e8569 /Lib/unittest
parentca5108a46d5da3978d4bd29717ea3fbdee772e66 (diff)
downloadcpython-6ae254aaa0a5a3985a52d1ab387a2b68c001bd96.zip
cpython-6ae254aaa0a5a3985a52d1ab387a2b68c001bd96.tar.gz
cpython-6ae254aaa0a5a3985a52d1ab387a2b68c001bd96.tar.bz2
gh-120417: Add #noqa to used imports in the stdlib (#120421)
Tools such as ruff can ignore "imported but unused" warnings if a line ends with "# noqa: F401". It avoids the temptation to remove an import which is used effectively.
Diffstat (limited to 'Lib/unittest')
-rw-r--r--Lib/unittest/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/unittest/__init__.py b/Lib/unittest/__init__.py
index f1f6c91..324e5d0 100644
--- a/Lib/unittest/__init__.py
+++ b/Lib/unittest/__init__.py
@@ -57,9 +57,9 @@ from .result import TestResult
from .case import (addModuleCleanup, TestCase, FunctionTestCase, SkipTest, skip,
skipIf, skipUnless, expectedFailure, doModuleCleanups,
enterModuleContext)
-from .suite import BaseTestSuite, TestSuite
+from .suite import BaseTestSuite, TestSuite # noqa: F401
from .loader import TestLoader, defaultTestLoader
-from .main import TestProgram, main
+from .main import TestProgram, main # noqa: F401
from .runner import TextTestRunner, TextTestResult
from .signals import installHandler, registerResult, removeResult, removeHandler
# IsolatedAsyncioTestCase will be imported lazily.