diff --git a/dependencies/default/requirements.txt b/dependencies/default/requirements.txt index 3ac25aba..42cfc8d3 100644 --- a/dependencies/default/requirements.txt +++ b/dependencies/default/requirements.txt @@ -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 >= 8.2,<9 diff --git a/dependencies/pytest-min/constraints.txt b/dependencies/pytest-min/constraints.txt index 65e3addb..f01a0eb7 100644 --- a/dependencies/pytest-min/constraints.txt +++ b/dependencies/pytest-min/constraints.txt @@ -11,10 +11,10 @@ iniconfig==2.0.0 mock==5.1.0 nose==1.3.7 packaging==23.2 -pluggy==1.3.0 +pluggy==1.5.0 py==1.11.0 Pygments==2.16.1 -pytest==7.0.0 +pytest==8.2.0 requests==2.31.0 sortedcontainers==2.4.0 tomli==2.0.1 diff --git a/dependencies/pytest-min/requirements.txt b/dependencies/pytest-min/requirements.txt index 9fb33e96..918abfd5 100644 --- a/dependencies/pytest-min/requirements.txt +++ b/dependencies/pytest-min/requirements.txt @@ -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] == 8.2.0 diff --git a/docs/source/reference/changelog.rst b/docs/source/reference/changelog.rst index f4067f20..6d59557e 100644 --- a/docs/source/reference/changelog.rst +++ b/docs/source/reference/changelog.rst @@ -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 `_ - Fixes a bug that caused module-scoped async fixtures to fail when reused in other modules `#862 `_ `#668 `_ +- Updated minimum supported pytest version to v8.2.0 0.23.8 (2024-07-17) diff --git a/setup.cfg b/setup.cfg index 9947cbe3..c04d3884 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 >= 8.2,<9 [options.extras_require] testing = diff --git a/tests/test_is_async_test.py b/tests/test_is_async_test.py index 12e791c1..cf98cc94 100644 --- a/tests/test_is_async_test.py +++ b/tests/test_is_async_test.py @@ -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)