Skip to content

Commit

Permalink
Bump pytest-asyncio from 0.16.0 to 0.17.0 (#314)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
dependabot[bot] and soxoj authored Jan 15, 2022
1 parent 41f2ae6 commit e8d63ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
filterwarnings =
error
ignore::UserWarning
asyncio_mode=auto
3 changes: 2 additions & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
flake8==4.0.1
pytest==6.2.5
pytest-asyncio==0.16.0
pytest-asyncio==0.16.0;python_version<"3.7"
pytest-asyncio==0.17.0;python_version>="3.7"
pytest-cov==3.0.0
pytest-httpserver==1.0.3
pytest-rerunfailures==10.2
5 changes: 4 additions & 1 deletion tests/test_executors.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ async def test_asyncio_progressbar_queue_executor():
assert executor.execution_time < 0.5

executor = AsyncioProgressbarQueueExecutor(logger=logger, in_parallel=5)
assert await executor.run(tasks) == [0, 3, 6, 1, 4, 7, 9, 2, 5, 8]
assert await executor.run(tasks) in (
[0, 3, 6, 1, 4, 7, 9, 2, 5, 8],
[0, 3, 6, 1, 4, 9, 7, 2, 5, 8],
)
assert executor.execution_time > 0.3
assert executor.execution_time < 0.4

Expand Down

0 comments on commit e8d63ef

Please sign in to comment.