Skip to content

Commit 9ebb6a2

Browse files
committed
Skip lint on unused imports
1 parent 0f565c2 commit 9ebb6a2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/support/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3024,7 +3024,7 @@ def force_color(color: bool):
30243024

30253025
if color:
30263026
try:
3027-
import _pyrepl
3027+
import _pyrepl # noqa: F401
30283028
except ModuleNotFoundError:
30293029
# Can't force enable color without _pyrepl, so just skip.
30303030
raise unittest.SkipTest("_pyrepl is missing")

Lib/test/test_repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def test_toplevel_contextvars_async(self):
427427
p.stdin.write(user_input)
428428
user_input2 = "async def set_var(): var.set('ok')\n"
429429
try:
430-
import _pyrepl
430+
import _pyrepl # noqa: F401
431431
except ModuleNotFoundError:
432432
# If we're going to be forced into the regular REPL, then we need an
433433
# extra newline here. Omit it by default to catch any breakage to

0 commit comments

Comments
 (0)