Skip to content

Commit e8d63ef

Browse files
Bump pytest-asyncio from 0.16.0 to 0.17.0 (soxoj#314)
* Bump pytest-asyncio from 0.16.0 to 0.17.0 Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) from 0.16.0 to 0.17.0. - [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases) - [Commits](pytest-dev/pytest-asyncio@v0.16.0...v0.17.0) --- updated-dependencies: - dependency-name: pytest-asyncio dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Python version specified for dependency (3.6 support was dropped) * Pytest config fixes Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Soxoj <soxoj@protonmail.com>
1 parent 41f2ae6 commit e8d63ef

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

pytest.ini

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
filterwarnings =
44
error
55
ignore::UserWarning
6+
asyncio_mode=auto

test-requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
flake8==4.0.1
22
pytest==6.2.5
3-
pytest-asyncio==0.16.0
3+
pytest-asyncio==0.16.0;python_version<"3.7"
4+
pytest-asyncio==0.17.0;python_version>="3.7"
45
pytest-cov==3.0.0
56
pytest-httpserver==1.0.3
67
pytest-rerunfailures==10.2

tests/test_executors.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ async def test_asyncio_progressbar_queue_executor():
6363
assert executor.execution_time < 0.5
6464

6565
executor = AsyncioProgressbarQueueExecutor(logger=logger, in_parallel=5)
66-
assert await executor.run(tasks) == [0, 3, 6, 1, 4, 7, 9, 2, 5, 8]
66+
assert await executor.run(tasks) in (
67+
[0, 3, 6, 1, 4, 7, 9, 2, 5, 8],
68+
[0, 3, 6, 1, 4, 9, 7, 2, 5, 8],
69+
)
6770
assert executor.execution_time > 0.3
6871
assert executor.execution_time < 0.4
6972

0 commit comments

Comments
 (0)