Skip to content

Commit fd839bd

Browse files
committed
Fix tests.
1 parent 2e5094b commit fd839bd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ releases are available on [PyPI](https://pypi.org/project/pytask-parallel) and
1111
- {pull}`44` allows to capture warnings from subprocesses. Fixes {issue}`41`.
1212
- {pull}`45` replaces the delay command line option with an internal, dynamic parameter.
1313
Fixes {issue}`41`.
14-
- {pull}`46` adds a dynamic sleep duration during the execution.
14+
- {pull}`46` adds a dynamic sleep duration during the execution. Fixes {issue}`42`.
1515

1616
## 0.2.0 - 2022-04-15
1717

tests/test_execute.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import pickle
44
import textwrap
5-
import time
65
from pathlib import Path
6+
from time import time
77

88
import pytest
99
from pytask import cli
@@ -314,7 +314,7 @@ def test_sleeper():
314314
sleeper.reset()
315315
assert sleeper.timing_idx == 0
316316

317-
start = time.time()
317+
start = time()
318318
sleeper.sleep()
319-
end = time.time()
319+
end = time()
320320
assert 1 <= end - start <= 1.01

0 commit comments

Comments
 (0)