Accepting request 1100456 from devel:languages:python:pytest

- update to 12.0:
  * Drop support for pytest < 6.2.
  * Add ``only_rerun`` and ``rerun_except`` arguments to
    ``@pytest.mark.flaky`` marker.
  * Add support for pytest 7.3, 7.4.
  * Failures are now rerun only if they match at least one
    ``--only-rerun`` pattern (if given) and none of the 
    ``--rerun-except`` patterns. Previously, using both 
    ``--only-rerun`` and ``--rerun-except`` together
    could cause failures to be rerun even if they did not
    match any ``--only-rerun`` pattern, and when using
    multiple ``--rerun-except`` patterns, all failures
    would be rerun unless they matched every pattern.

OBS-URL: https://build.opensuse.org/request/show/1100456
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-rerunfailures?expand=0&rev=10
This commit is contained in:
Ana Guerrero 2023-07-26 11:21:43 +00:00 committed by Git OBS Bridge
commit 1487558cea
4 changed files with 22 additions and 7 deletions

BIN
pytest-rerunfailures-11.1.2.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
pytest-rerunfailures-12.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Mon Jul 24 19:55:40 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 12.0:
* Drop support for pytest < 6.2.
* Add ``only_rerun`` and ``rerun_except`` arguments to
``@pytest.mark.flaky`` marker.
* Add support for pytest 7.3, 7.4.
* Failures are now rerun only if they match at least one
``--only-rerun`` pattern (if given) and none of the
``--rerun-except`` patterns. Previously, using both
``--only-rerun`` and ``--rerun-except`` together
could cause failures to be rerun even if they did not
match any ``--only-rerun`` pattern, and when using
multiple ``--rerun-except`` patterns, all failures
would be rerun unless they matched every pattern.
-------------------------------------------------------------------
Tue May 9 21:10:26 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -16,11 +16,9 @@
#
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-pytest-rerunfailures
Version: 11.1.2
Version: 12.0
Release: 0
Summary: A pytest plugin to re-run tests
License: MPL-2.0
@ -30,7 +28,7 @@ BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module setuptools >= 40.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pytest >= 6.0
Requires: python-pytest >= 6.2
Requires: python-setuptools >= 40.0
BuildArch: noarch
# SECTION test requirements