Hello community,
here is the log from the commit of package python-pytest-rerunfailures for openSUSE:Factory checked in at 2019-02-25 17:51:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-rerunfailures (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-rerunfailures.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-rerunfailures"
Mon Feb 25 17:51:40 2019 rev:2 rq:676366 version:6.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pytest-rerunfailures/python-pytest-rerunfailures.changes 2018-11-30 16:32:42.281338083 +0100
+++ /work/SRC/openSUSE:Factory/.python-pytest-rerunfailures.new.28833/python-pytest-rerunfailures.changes 2019-02-25 17:51:42.766741507 +0100
@@ -1,0 +2,9 @@
+Fri Feb 15 09:52:15 UTC 2019 - Tomáš Chvátal
+
+- Enable tests really
+- Update to 6.0:
+ * Drop support for pytest version 3.6 and 3.7.
+ * Add support for pytest version 4.0 and 4.1.
+ * Fixed #77 regression issue introduced in 4.2 related to the rerun attribute on the test report. (#77) (Thanks to @RibeiroAna for the PR).
+
+-------------------------------------------------------------------
Old:
----
pytest-rerunfailures-5.0.tar.gz
New:
----
pytest-rerunfailures-6.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-rerunfailures.spec ++++++
--- /var/tmp/diff_new_pack.MZurlA/_old 2019-02-25 17:51:43.366741180 +0100
+++ /var/tmp/diff_new_pack.MZurlA/_new 2019-02-25 17:51:43.366741180 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-rerunfailures
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-rerunfailures
-Version: 5.0
+Version: 6.0
Release: 0
Summary: A pytest plugin to re-run tests
License: MPL-2.0
@@ -28,11 +28,11 @@
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
-Requires: python-pytest >= 3.6
+Requires: python-pytest >= 3.8
BuildArch: noarch
# SECTION test requirements
-BuildRequires: %{python_module mock}
-BuildRequires: %{python_module pytest >= 3.6}
+BuildRequires: %{python_module pytest >= 3.8}
+BuildRequires: python-mock
# /SECTION
%python_subpackages
@@ -51,7 +51,7 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-%python_exec setup.py test
+%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v
%files %{python_files}
%doc CHANGES.rst README.rst
++++++ pytest-rerunfailures-5.0.tar.gz -> pytest-rerunfailures-6.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-rerunfailures-5.0/.travis.yml new/pytest-rerunfailures-6.0/.travis.yml
--- old/pytest-rerunfailures-5.0/.travis.yml 2018-11-06 11:20:04.000000000 +0100
+++ new/pytest-rerunfailures-6.0/.travis.yml 2019-01-08 11:34:20.000000000 +0100
@@ -11,11 +11,11 @@
- pypy2.7-5.10.0
- pypy3.5
env:
- - PYTEST=3.6.4
- - PYTEST=3.7.4
- PYTEST=3.8.2
- PYTEST=3.9.3
- PYTEST=3.10.0
+ - PYTEST=4.0.2
+ - PYTEST=4.1.0
install:
- pip install -q pytest==$PYTEST
- pip install -q -e .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-rerunfailures-5.0/CHANGES.rst new/pytest-rerunfailures-6.0/CHANGES.rst
--- old/pytest-rerunfailures-5.0/CHANGES.rst 2018-11-06 11:20:04.000000000 +0100
+++ new/pytest-rerunfailures-6.0/CHANGES.rst 2019-01-08 11:34:20.000000000 +0100
@@ -1,6 +1,30 @@
Changelog
---------
+6.0 (2019-01-08)
+================
+
+Backwards incompatible changes
+++++++++++++++++++++++++++++++
+
+- Drop support for pytest version 3.6 and 3.7.
+
+Features
+++++++++
+
+- Add support for pytest version 4.0 and 4.1.
+
+Bug fixes
++++++++++
+
+- Fixed #77 regression issue introduced in 4.2 related to the ``rerun``
+ attribute on the test report.
+ (`#77 https://github.com/pytest-dev/pytest-rerunfailures/issues/77`_)
+ (Thanks to `@RibeiroAna`_ for the PR).
+
+.. _@RibeiroAna: https://github.com/RibeiroAna
+
+
5.0 (2018-11-06)
================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-rerunfailures-5.0/PKG-INFO new/pytest-rerunfailures-6.0/PKG-INFO
--- old/pytest-rerunfailures-5.0/PKG-INFO 2018-11-06 11:20:05.000000000 +0100
+++ new/pytest-rerunfailures-6.0/PKG-INFO 2019-01-08 11:34:21.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: pytest-rerunfailures
-Version: 5.0
+Version: 6.0
Summary: pytest plugin to re-run tests to eliminate flaky failures
Home-page: https://github.com/pytest-dev/pytest-rerunfailures
Author: Leah Klearman
@@ -28,7 +28,11 @@
You will need the following prerequisites in order to use pytest-rerunfailures:
- Python 2.7, 3.4, 3.5, 3.6, 3.7, PyPy, or PyPy3
- - pytest 3.6 or newer
+ - pytest 3.8 or newer
+
+ This package is currently tested against the last 5 minor pytest releases. In
+ case you work with an older version of pytest you should consider updating or
+ use one of the earlier versions of this package.
Installation
------------
@@ -139,6 +143,30 @@
Changelog
---------
+ 6.0 (2019-01-08)
+ ================
+
+ Backwards incompatible changes
+ ++++++++++++++++++++++++++++++
+
+ - Drop support for pytest version 3.6 and 3.7.
+
+ Features
+ ++++++++
+
+ - Add support for pytest version 4.0 and 4.1.
+
+ Bug fixes
+ +++++++++
+
+ - Fixed #77 regression issue introduced in 4.2 related to the ``rerun``
+ attribute on the test report.
+ (`#77 https://github.com/pytest-dev/pytest-rerunfailures/issues/77`_)
+ (Thanks to `@RibeiroAna`_ for the PR).
+
+ .. _@RibeiroAna: https://github.com/RibeiroAna
+
+
5.0 (2018-11-06)
================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-rerunfailures-5.0/README.rst new/pytest-rerunfailures-6.0/README.rst
--- old/pytest-rerunfailures-5.0/README.rst 2018-11-06 11:20:04.000000000 +0100
+++ new/pytest-rerunfailures-6.0/README.rst 2019-01-08 11:34:20.000000000 +0100
@@ -20,7 +20,11 @@
You will need the following prerequisites in order to use pytest-rerunfailures:
- Python 2.7, 3.4, 3.5, 3.6, 3.7, PyPy, or PyPy3
-- pytest 3.6 or newer
+- pytest 3.8 or newer
+
+This package is currently tested against the last 5 minor pytest releases. In
+case you work with an older version of pytest you should consider updating or
+use one of the earlier versions of this package.
Installation
------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-rerunfailures-5.0/pytest_rerunfailures.egg-info/PKG-INFO new/pytest-rerunfailures-6.0/pytest_rerunfailures.egg-info/PKG-INFO
--- old/pytest-rerunfailures-5.0/pytest_rerunfailures.egg-info/PKG-INFO 2018-11-06 11:20:04.000000000 +0100
+++ new/pytest-rerunfailures-6.0/pytest_rerunfailures.egg-info/PKG-INFO 2019-01-08 11:34:21.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: pytest-rerunfailures
-Version: 5.0
+Version: 6.0
Summary: pytest plugin to re-run tests to eliminate flaky failures
Home-page: https://github.com/pytest-dev/pytest-rerunfailures
Author: Leah Klearman
@@ -28,7 +28,11 @@
You will need the following prerequisites in order to use pytest-rerunfailures:
- Python 2.7, 3.4, 3.5, 3.6, 3.7, PyPy, or PyPy3
- - pytest 3.6 or newer
+ - pytest 3.8 or newer
+
+ This package is currently tested against the last 5 minor pytest releases. In
+ case you work with an older version of pytest you should consider updating or
+ use one of the earlier versions of this package.
Installation
------------
@@ -139,6 +143,30 @@
Changelog
---------
+ 6.0 (2019-01-08)
+ ================
+
+ Backwards incompatible changes
+ ++++++++++++++++++++++++++++++
+
+ - Drop support for pytest version 3.6 and 3.7.
+
+ Features
+ ++++++++
+
+ - Add support for pytest version 4.0 and 4.1.
+
+ Bug fixes
+ +++++++++
+
+ - Fixed #77 regression issue introduced in 4.2 related to the ``rerun``
+ attribute on the test report.
+ (`#77 https://github.com/pytest-dev/pytest-rerunfailures/issues/77`_)
+ (Thanks to `@RibeiroAna`_ for the PR).
+
+ .. _@RibeiroAna: https://github.com/RibeiroAna
+
+
5.0 (2018-11-06)
================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-rerunfailures-5.0/pytest_rerunfailures.egg-info/requires.txt new/pytest-rerunfailures-6.0/pytest_rerunfailures.egg-info/requires.txt
--- old/pytest-rerunfailures-5.0/pytest_rerunfailures.egg-info/requires.txt 2018-11-06 11:20:04.000000000 +0100
+++ new/pytest-rerunfailures-6.0/pytest_rerunfailures.egg-info/requires.txt 2019-01-08 11:34:21.000000000 +0100
@@ -1 +1 @@
-pytest>=3.6
+pytest>=3.8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-rerunfailures-5.0/pytest_rerunfailures.py new/pytest-rerunfailures-6.0/pytest_rerunfailures.py
--- old/pytest-rerunfailures-5.0/pytest_rerunfailures.py 2018-11-06 11:20:04.000000000 +0100
+++ new/pytest-rerunfailures-6.0/pytest_rerunfailures.py 2019-01-08 11:34:20.000000000 +0100
@@ -175,6 +175,7 @@
reports = runtestprotocol(item, nextitem=nextitem, log=False)
for report in reports: # 3 reports: setup, call, teardown
+ report.rerun = item.execution_count - 1
xfail = hasattr(report, 'wasxfail')
if item.execution_count > reruns or not report.failed or xfail:
# last run or no failure detected, log normally
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-rerunfailures-5.0/setup.py new/pytest-rerunfailures-6.0/setup.py
--- old/pytest-rerunfailures-5.0/setup.py 2018-11-06 11:20:04.000000000 +0100
+++ new/pytest-rerunfailures-6.0/setup.py 2019-01-08 11:34:20.000000000 +0100
@@ -1,7 +1,7 @@
from setuptools import setup
setup(name='pytest-rerunfailures',
- version='5.0',
+ version='6.0',
description='pytest plugin to re-run tests to eliminate flaky failures',
long_description=(
open('README.rst').read() +
@@ -12,7 +12,7 @@
url='https://github.com/pytest-dev/pytest-rerunfailures',
py_modules=['pytest_rerunfailures'],
entry_points={'pytest11': ['rerunfailures = pytest_rerunfailures']},
- install_requires=['pytest >= 3.6'],
+ install_requires=['pytest >= 3.8'],
license='Mozilla Public License 2.0 (MPL 2.0)',
keywords='py.test pytest rerun failures flaky',
zip_safe=False,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-rerunfailures-5.0/test_pytest_rerunfailures.py new/pytest-rerunfailures-6.0/test_pytest_rerunfailures.py
--- old/pytest-rerunfailures-5.0/test_pytest_rerunfailures.py 2018-11-06 11:20:04.000000000 +0100
+++ new/pytest-rerunfailures-6.0/test_pytest_rerunfailures.py 2019-01-08 11:34:20.000000000 +0100
@@ -388,3 +388,14 @@
assert item.execution_count == 3""")
result = testdir.runpytest('--reruns', '2')
assert_outcomes(result, passed=3, rerun=2)
+
+def test_rerun_report(testdir):
+ testdir.makepyfile('def test_pass(): assert False')
+ testdir.makeconftest("""
+ def pytest_runtest_logreport(report):
+ assert hasattr(report, 'rerun')
+ assert isinstance(report.rerun, int)
+ assert report.rerun <= 2
+ """)
+ result = testdir.runpytest('--reruns', '2')
+ assert_outcomes(result, failed=1, rerun=2, passed=0)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-rerunfailures-5.0/tox.ini new/pytest-rerunfailures-6.0/tox.ini
--- old/pytest-rerunfailures-5.0/tox.ini 2018-11-06 11:20:04.000000000 +0100
+++ new/pytest-rerunfailures-6.0/tox.ini 2019-01-08 11:34:20.000000000 +0100
@@ -1,17 +1,17 @@
-# Tox (http://tox.testrun.org/) is a tool for running tests
+# Tox (https://tox.readthedocs.io/en/latest/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
-envlist = py{27,34,35,36,37,py,py3}-pytest{36,37,38,39,310},
+envlist = py{27,34,35,36,37,py,py3}-pytest{38,39,310,40,41},
[testenv]
commands = py.test test_pytest_rerunfailures.py {posargs}
deps =
mock
- pytest36: pytest==3.6.*
- pytest37: pytest==3.7.*
pytest38: pytest==3.8.*
pytest39: pytest==3.9.*
pytest310: pytest==3.10.*
+ pytest40: pytest==4.0.*
+ pytest41: pytest==4.1.*