Skip to content

Commit 21b9c33

Browse files
committed
Fix.
1 parent 3d28b1f commit 21b9c33

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/test_execute.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
from __future__ import annotations
22

3-
import pickle
43
import textwrap
5-
from pathlib import Path
64
from time import time
75

86
import pytest
97
from pytask import build
108
from pytask import cli
119
from pytask import ExitCode
12-
from pytask import Task
1310
from pytask_parallel.backends import PARALLEL_BACKENDS
1411
from pytask_parallel.backends import ParallelBackendChoices
1512
from pytask_parallel.execute import _Sleeper
16-
from pytask_parallel.execute import DefaultBackendNameSpace
17-
from pytask_parallel.execute import ProcessesNameSpace
1813

1914
from tests.conftest import restore_sys_path_and_module_after_test_execution
2015

@@ -280,15 +275,16 @@ def task_example() -> Annotated[str, Path("file.txt")]:
280275
assert tmp_path.joinpath("file.txt").exists()
281276

282277

283-
284278
@pytest.mark.end_to_end()
285279
@pytest.mark.parametrize("parallel_backend", _PARALLEL_BACKENDS_PARAMETRIZATION)
286280
def test_task_without_path_that_return(runner, tmp_path, parallel_backend):
287281
source = """
288282
from pathlib import Path
289283
from pytask import task
290284
291-
task_example = task(produces=Path("file.txt"))(lambda *x: "Hello, Darkness, my old friend.")
285+
task_example = task(
286+
produces=Path("file.txt")
287+
)(lambda *x: "Hello, Darkness, my old friend.")
292288
"""
293289
tmp_path.joinpath("task_example.py").write_text(textwrap.dedent(source))
294290
result = runner.invoke(

0 commit comments

Comments
 (0)