From 32704d24a75c6e8575054d721978d78f9e3b030d Mon Sep 17 00:00:00 2001 From: Michael Seifert Date: Wed, 7 Aug 2024 13:00:01 +0200 Subject: [PATCH] build: Bump minimum supported pytest version to v7.3.0. --- dependencies/default/requirements.txt | 2 +- dependencies/pytest-min/constraints.txt | 2 +- dependencies/pytest-min/requirements.txt | 2 +- docs/source/reference/changelog.rst | 1 + setup.cfg | 2 +- tests/test_is_async_test.py | 5 +---- 6 files changed, 6 insertions(+), 8 deletions(-) diff --git a/dependencies/default/requirements.txt b/dependencies/default/requirements.txt index 3ac25aba..412937b4 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 >= 7.3.0,<9 diff --git a/dependencies/pytest-min/constraints.txt b/dependencies/pytest-min/constraints.txt index 65e3addb..8225c28b 100644 --- a/dependencies/pytest-min/constraints.txt +++ b/dependencies/pytest-min/constraints.txt @@ -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 diff --git a/dependencies/pytest-min/requirements.txt b/dependencies/pytest-min/requirements.txt index 9fb33e96..0734a250 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] == 7.3.0 diff --git a/docs/source/reference/changelog.rst b/docs/source/reference/changelog.rst index f4067f20..7fcd8f2d 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 v7.3.0 0.23.8 (2024-07-17) diff --git a/setup.cfg b/setup.cfg index 9947cbe3..f014638d 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 >= 7.3.0,<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)