Skip to content

Commit

Permalink
build: Bump minimum supported pytest version to v7.3.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
seifertm committed Aug 7, 2024
1 parent 25fdead commit 32704d2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dependencies/default/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Always adjust install_requires in setup.cfg and pytest-min-requirements.txt
# when changing runtime dependencies
pytest >= 7.0.0,<9
pytest >= 7.3.0,<9
2 changes: 1 addition & 1 deletion dependencies/pytest-min/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ packaging==23.2
pluggy==1.3.0
py==1.11.0
Pygments==2.16.1
pytest==7.0.0
pytest==7.2.0
requests==2.31.0
sortedcontainers==2.4.0
tomli==2.0.1
Expand Down
2 changes: 1 addition & 1 deletion dependencies/pytest-min/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Always adjust install_requires in setup.cfg and requirements.txt
# when changing minimum version dependencies
pytest[testing] == 7.0.0
pytest[testing] == 7.3.0
1 change: 1 addition & 0 deletions docs/source/reference/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Changelog
- Deprecates the optional `scope` keyword argument to `pytest.mark.asyncio` for API consistency with ``pytest_asyncio.fixture``. Users are encouraged to use the `loop_scope` keyword argument, which does exactly the same.
- Raises an error when passing `scope` or `loop_scope` as a positional argument to ``@pytest.mark.asyncio``. `#812 <https://github.com/pytest-dev/pytest-asyncio/issues/812>`_
- Fixes a bug that caused module-scoped async fixtures to fail when reused in other modules `#862 <https://github.com/pytest-dev/pytest-asyncio/issues/862>`_ `#668 <https://github.com/pytest-dev/pytest-asyncio/issues/668>`_
- Updated minimum supported pytest version to v7.3.0


0.23.8 (2024-07-17)
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ include_package_data = True

# Always adjust requirements.txt and pytest-min-requirements.txt when changing runtime dependencies
install_requires =
pytest >= 7.0.0,<9
pytest >= 7.3.0,<9

[options.extras_require]
testing =
Expand Down
5 changes: 1 addition & 4 deletions tests/test_is_async_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@ def pytest_collection_modifyitems(items):
)
)
result = pytester.runpytest("--asyncio-mode=strict")
if pytest.version_tuple < (7, 2):
# Probably related to https://github.com/pytest-dev/pytest/pull/10012
result.assert_outcomes(failed=1)
elif pytest.version_tuple < (8,):
if pytest.version_tuple < (8,):
result.assert_outcomes(skipped=1)
else:
result.assert_outcomes(failed=1)
Expand Down

0 comments on commit 32704d2

Please sign in to comment.