From d3e130d3e64d3c0ceee76e89d523f3f5c61e4165 Mon Sep 17 00:00:00 2001 From: Michael Howitz Date: Fri, 19 Jun 2026 17:36:40 +0200 Subject: [PATCH] Drop support for pytest 8.1. Add support for pytest 9.1. --- .github/workflows/test.yml | 2 +- CHANGES.rst | 10 +++++++++- README.rst | 2 +- pyproject.toml | 2 +- tox.ini | 4 ++-- 5 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f8abdcd..96a4bba 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,11 +28,11 @@ jobs: "pypy-3.11", ] pytest-version: [ - "8.1.*", "8.2.*", "8.3.*", "8.4.*", "9.0.*", + "9.1.*", "main", ] steps: diff --git a/CHANGES.rst b/CHANGES.rst index 7960238..8a74a6a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,15 @@ Changelog 16.4 (unreleased) ----------------- -- Nothing changed yet. +Breaking changes +++++++++++++++++ + +- Drop support for pytest 8.1. Minimum pytest version is now 8.2. + +Features +++++++++ + +- Add support for pytest 9.1. 16.3 (2026-05-22) diff --git a/README.rst b/README.rst index 30d2669..e65152f 100644 --- a/README.rst +++ b/README.rst @@ -29,7 +29,7 @@ Requirements You will need the following prerequisites in order to use pytest-rerunfailures: - Python 3.10+ or PyPy3 -- pytest 8.1 or newer +- pytest 8.2 or newer This plugin can recover from a hard crash with the following optional prerequisites: diff --git a/pyproject.toml b/pyproject.toml index 4d6aa3d..d44533d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,7 @@ dynamic = [ ] dependencies = [ "packaging>=17.1", - "pytest!=8.2.2,>=8.1", + "pytest!=8.2.2,>=8.2", ] urls = { Homepage = "https://github.com/pytest-dev/pytest-rerunfailures" } diff --git a/tox.ini b/tox.ini index 74ed502..6f6086e 100644 --- a/tox.ini +++ b/tox.ini @@ -11,7 +11,7 @@ max-line-length = 88 [tox] envlist = linting - py{310,311,312,313,314,py3}-pytest{81,82,83,84,90,main} + py{310,311,312,313,314,py3}-pytest{82,83,84,90,91,main} docs minversion = 4.0 @@ -19,11 +19,11 @@ minversion = 4.0 commands = pytest tests/ {posargs} deps = pytest-xdist - pytest81: pytest==8.1.* pytest82: pytest==8.2.* pytest83: pytest==8.3.* pytest84: pytest==8.4.* pytest90: pytest==9.0.* + pytest91: pytest==9.1.* pytestmain: git+https://github.com/pytest-dev/pytest.git@main#egg=pytest [testenv:linting]