diff --git a/pytest-rerunfailures-12.0.tar.gz b/pytest-rerunfailures-12.0.tar.gz deleted file mode 100644 index 22b5585..0000000 --- a/pytest-rerunfailures-12.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:784f462fa87fe9bdf781d0027d856b47a4bfe6c12af108f6bd887057a917b48e -size 21154 diff --git a/pytest-rerunfailures-14.0.tar.gz b/pytest-rerunfailures-14.0.tar.gz new file mode 100644 index 0000000..4781a96 --- /dev/null +++ b/pytest-rerunfailures-14.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a400bcbcd3c7a4ad151ab8afac123d90eca3abe27f98725dc4d9702887d2e92 +size 21350 diff --git a/python-pytest-rerunfailures.changes b/python-pytest-rerunfailures.changes index 08775ca..4063a82 100644 --- a/python-pytest-rerunfailures.changes +++ b/python-pytest-rerunfailures.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Tue May 7 03:12:25 UTC 2024 - Steve Kowalik + +- Switch to pyproject macros. +- Skip some tests that have been broken by pytest 8.2. + +------------------------------------------------------------------- +Sat Mar 16 09:48:54 UTC 2024 - Dirk Müller + +- update to 14.0: + * Fix missing teardown for non-function scoped fixtures when + using only_rerun or rerun_except queries. (#234) and + * Drop support for Python 3.7. + * Drop support for pytest < 7.2. + * Add support for pytest 8.0, 8.1. + +------------------------------------------------------------------- +Thu Dec 14 21:18:17 UTC 2023 - Dirk Müller + +- update to 13.0: + * Drop support for pytest < 7.0. + * Add support for Python 3.12. + * Fix crashitem names mismatch between client and server. + * Fix crash when setup fails with --rerun-except flag. + ------------------------------------------------------------------- Mon Jul 24 19:55:40 UTC 2023 - Dirk Müller @@ -7,8 +32,8 @@ Mon Jul 24 19:55:40 UTC 2023 - Dirk Müller ``@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`` 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 @@ -76,18 +101,18 @@ Sat Nov 7 18:33:40 UTC 2020 - Benjamin Greiner - Update to 9.1.1 Compatibility fix. * Ignore --result-log command line option when used together with - pytest >= 6.1.0, as it was removed there. This is a quick fix, + pytest >= 6.1.0, as it was removed there. This is a quick fix, use an older version of pytest, if you want to keep this feature for now. (Thanks to @ntessore for the PR) * Support up to pytest 6.1.0. - Changelog for 9.1 Features - * Add a new flag --only-rerun to allow for users to rerun only + * Add a new flag --only-rerun to allow for users to rerun only certain errors. Other changes * Drop dependency on mock. * Add support for pre-commit and add a linting tox target. (#117) - (PR from @gnikonorov) + (PR from @gnikonorov) ------------------------------------------------------------------- Mon Mar 23 09:00:46 UTC 2020 - Tomáš Chvátal diff --git a/python-pytest-rerunfailures.spec b/python-pytest-rerunfailures.spec index 3b40ba8..ff7ba8f 100644 --- a/python-pytest-rerunfailures.spec +++ b/python-pytest-rerunfailures.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-rerunfailures # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,21 +18,23 @@ %{?sle15_python_module_pythons} Name: python-pytest-rerunfailures -Version: 12.0 +Version: 14.0 Release: 0 Summary: A pytest plugin to re-run tests License: MPL-2.0 URL: https://github.com/pytest-dev/pytest-rerunfailures Source: https://files.pythonhosted.org/packages/source/p/pytest-rerunfailures/pytest-rerunfailures-%{version}.tar.gz BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools >= 40.0} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-pytest >= 6.2 -Requires: python-setuptools >= 40.0 +Requires: python-packaging >= 17.1 +Requires: python-pytest >= 7.2 BuildArch: noarch # SECTION test requirements -BuildRequires: %{python_module pytest >= 6.0} +BuildRequires: %{python_module pytest >= 7.2} BuildRequires: %{python_module pytest-xdist} # /SECTION %python_subpackages @@ -45,20 +47,26 @@ tests to eliminate intermittent failures. %setup -q -n pytest-rerunfailures-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +# https://github.com/pytest-dev/pytest-rerunfailures/issues/267 +donttest="test_run_session_teardown_once_after_reruns " +donttest+="or test_exception_matches_rerun_except_query " +donttest+="or test_exception_not_match_rerun_except_query " +donttest+="or test_exception_matches_only_rerun_query " +donttest+="or test_exception_match_only_rerun_in_dual_query" +%pytest -k "not (${donttest})" %files %{python_files} %doc CHANGES.rst README.rst %license LICENSE -%{python_sitelib}/pytest_rerunfailures.py* -%pycache_only %{python_sitelib}/__pycache__/pytest_rerunfailures* -%{python_sitelib}/pytest_rerunfailures-%{version}*-info +%{python_sitelib}/pytest_rerunfailures.py +%pycache_only %{python_sitelib}/__pycache__/pytest_rerunfailures*pyc +%{python_sitelib}/pytest_rerunfailures-%{version}.dist-info %changelog