Skip to content

Commit 6355479

Browse files
committed
tests: make more robust
1 parent 608f3d3 commit 6355479

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/test_boost.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
async def pause():
14-
EPSILON = 0.001
14+
EPSILON = 0.002
1515
await asyncio.sleep(EPSILON)
1616

1717

@@ -356,7 +356,6 @@ async def iterator() -> AsyncIterator[int]:
356356
assert results == []
357357
await pause()
358358
await pause()
359-
await pause()
360359
assert results == list(range(2 * 10 + 1))
361360

362361
assert await eager_it.blocking_dequeue() == 0

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
skipsdist = True
3-
envlist = py37, py39, py310, lint, mypy
3+
envlist = py37, py38, py39, py310, lint, mypy
44

55
[testenv]
66
deps = pytest
@@ -13,6 +13,8 @@ commands =
1313
coverage html
1414

1515
[testenv:lint]
16+
deps =
17+
typing-extensions
1618
commands_pre =
1719
bash -c 'poetry export --dev --without-hashes -f requirements.txt | pip install --quiet --no-deps -r /dev/stdin'
1820
commands =

0 commit comments

Comments
 (0)