From e164bead20401e233e55ea20a6e647a67dfdf61f Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 12 Dec 2022 12:06:02 +0100 Subject: [PATCH] Update tests/test_check_parallel.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> --- tests/test_check_parallel.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/test_check_parallel.py b/tests/test_check_parallel.py index 2f49da37ac..3ed73827f8 100644 --- a/tests/test_check_parallel.py +++ b/tests/test_check_parallel.py @@ -27,12 +27,8 @@ from pylint.typing import FileItem from pylint.utils import LinterStats, ModuleStats -try: - from concurrent.futures import ProcessPoolExecutor - from concurrent.futures.process import BrokenProcessPool -except ImportError: - ProcessPoolExecutor = None # type: ignore[assignment,misc] - BrokenProcessPool = None # type: ignore[assignment,misc] +from concurrent.futures import ProcessPoolExecutor +from concurrent.futures.process import BrokenProcessPool def _gen_file_data(idx: int = 0) -> FileItem: