Skip to content

Commit 8862b32

Browse files
committed
Fix mypy error
1 parent 9237d8d commit 8862b32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/libregrtest/worker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import _colorize
21
import subprocess
32
import sys
43
import os
4+
from _colorize import can_colorize # type: ignore[import-not-found]
55
from typing import Any, NoReturn
66

77
from test.support import os_helper, Py_DEBUG
@@ -36,7 +36,7 @@ def create_worker_process(runtests: WorkerRunTests, output_fd: int,
3636
# The subcommand is run with a temporary output which means it is not a tty
3737
# and won't auto-color. The test results are printed to stdout so if we can
3838
# color that have the subprocess use color.
39-
if _colorize.can_colorize(file=sys.stdout):
39+
if can_colorize(file=sys.stdout):
4040
env['FORCE_COLOR'] = '1'
4141

4242
# Running the child from the same working directory as regrtest's original

0 commit comments

Comments
 (0)