Skip to content

Commit cf07730

Browse files
committed
fix test.
1 parent ecf7e09 commit cf07730

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_execute.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,14 @@ def task_2(produces):
171171
def test_stop_execution_when_max_failures_is_reached(tmp_path, parallel_backend):
172172
source = """
173173
import time
174+
import pytask
174175
175-
def task_3(): raise NotImplmentedError
176+
def task_1(): time.sleep(1)
176177
def task_2(): time.sleep(2); raise NotImplementedError
177-
def task_1(): pass
178+
179+
@pytask.mark.try_last
180+
def task_3():
181+
time.sleep(3)
178182
"""
179183
tmp_path.joinpath("task_dummy.py").write_text(textwrap.dedent(source))
180184

0 commit comments

Comments
 (0)