File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5+ import os
6+ import sys
57import warnings
68from concurrent .futures import Executor
79from concurrent .futures import Future
1214from typing import Any
1315from typing import ClassVar
1416
15- import os
16- import sys
1717import cloudpickle
1818from attrs import define
1919from loky import get_reusable_executor
Original file line number Diff line number Diff line change 44
55import importlib .util
66import inspect
7- from pathlib import Path
87from functools import partial
8+ from pathlib import Path
99from typing import TYPE_CHECKING
1010from typing import Any
1111
2222if TYPE_CHECKING :
2323 from collections .abc import Callable
2424 from concurrent .futures import Future
25- from pathlib import Path
2625 from types import ModuleType
2726 from types import TracebackType
2827
Original file line number Diff line number Diff line change @@ -395,9 +395,7 @@ def task_assert_math():
395395 pytest .param (ParallelBackend .LOKY , marks = skip_if_deadlock ),
396396 ],
397397)
398- def test_parallel_execution_with_closed_file_handle (
399- runner , tmp_path , parallel_backend
400- ):
398+ def test_parallel_execution_with_closed_file_handle (runner , tmp_path , parallel_backend ):
401399 source = """
402400 from pathlib import Path
403401 from pytask import task
You can’t perform that action at this time.
0 commit comments