Hello community,
here is the log from the commit of package python-pytest-rerunfailures for
openSUSE:Factory checked in at 2019-03-28 22:49:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-rerunfailures (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-rerunfailures.new.25356
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-rerunfailures"
Thu Mar 28 22:49:48 2019 rev:3 rq:689361 version:7.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pytest-rerunfailures/python-pytest-rerunfailures.changes
2019-02-25 17:51:42.766741507 +0100
+++
/work/SRC/openSUSE:Factory/.python-pytest-rerunfailures.new.25356/python-pytest-rerunfailures.changes
2019-03-28 22:49:48.875042263 +0100
@@ -1,0 +2,8 @@
+Thu Mar 28 13:28:50 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 7.0:
+ * Drop support for pytest version 3.8 and 3.9.
+ * Add support for pytest version 4.2 and 4.3.
+ * Fixed #83 issue about ignored pytest_runtest_logfinish hooks
+
+-------------------------------------------------------------------
Old:
----
pytest-rerunfailures-6.0.tar.gz
New:
----
pytest-rerunfailures-7.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-rerunfailures.spec ++++++
--- /var/tmp/diff_new_pack.NkipMZ/_old 2019-03-28 22:49:49.431042140 +0100
+++ /var/tmp/diff_new_pack.NkipMZ/_new 2019-03-28 22:49:49.435042139 +0100
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-rerunfailures
-Version: 6.0
+Version: 7.0
Release: 0
Summary: A pytest plugin to re-run tests
License: MPL-2.0
++++++ pytest-rerunfailures-6.0.tar.gz -> pytest-rerunfailures-7.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-rerunfailures-6.0/.travis.yml
new/pytest-rerunfailures-7.0/.travis.yml
--- old/pytest-rerunfailures-6.0/.travis.yml 2019-01-08 11:34:20.000000000
+0100
+++ new/pytest-rerunfailures-7.0/.travis.yml 2019-03-28 08:28:31.000000000
+0100
@@ -11,11 +11,11 @@
- pypy2.7-5.10.0
- pypy3.5
env:
- - PYTEST=3.8.2
- - PYTEST=3.9.3
- PYTEST=3.10.0
- PYTEST=4.0.2
- - PYTEST=4.1.0
+ - PYTEST=4.1.1
+ - PYTEST=4.2.1
+ - PYTEST=4.3.1
install:
- pip install -q pytest==$PYTEST
- pip install -q -e .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-rerunfailures-6.0/CHANGES.rst
new/pytest-rerunfailures-7.0/CHANGES.rst
--- old/pytest-rerunfailures-6.0/CHANGES.rst 2019-01-08 11:34:20.000000000
+0100
+++ new/pytest-rerunfailures-7.0/CHANGES.rst 2019-03-28 08:28:31.000000000
+0100
@@ -1,8 +1,31 @@
Changelog
----------
+=========
+
+7.0 (2019-03-28)
+----------------
+
+Backwards incompatible changes
+++++++++++++++++++++++++++++++
+
+- Drop support for pytest version 3.8 and 3.9.
+
+Features
+++++++++
+
+- Add support for pytest version 4.2 and 4.3.
+
+Bug fixes
++++++++++
+
+- Fixed #83 issue about ignored ``pytest_runtest_logfinish`` hooks.
+ (`#83 <https://github.com/pytest-dev/pytest-rerunfailures/issues/83>`_)
+ (PR from `@KillAChicken`_)
+
+.. _@KillAChicken: https://github.com/KillAChicken
+
6.0 (2019-01-08)
-================
+----------------
Backwards incompatible changes
++++++++++++++++++++++++++++++
@@ -26,7 +49,7 @@
5.0 (2018-11-06)
-================
+----------------
- Drop support for pytest versions < 3.6 to reduce the maintenance burden.
@@ -40,7 +63,7 @@
4.2 (2018-10-04)
-================
+----------------
- Fixed #64 issue related to ``setup_class`` and ``fixture`` executions on
rerun (Thanks to
`@OlegKuzovkov`_ for the PR).
@@ -52,7 +75,7 @@
4.1 (2018-05-23)
-================
+----------------
- Add support for pytest 3.6 by using ``Node.get_closest_marker()`` (Thanks to
`@The-Compiler`_ for the PR).
@@ -60,7 +83,7 @@
.. _@The-Compiler: https://github.com/The-Compiler
4.0 (2017-12-23)
-================
+----------------
- Added option to add a delay time between test re-runs (Thanks to `@Kanguros`_
for the PR).
@@ -73,7 +96,7 @@
3.1 (2017-08-29)
-================
+----------------
- Restored compatibility with pytest-xdist. (Thanks to `@davehunt`_ for the PR)
@@ -81,7 +104,7 @@
3.0 (2017-08-17)
-================
+----------------
- Add support for Python 3.6.
@@ -93,7 +116,7 @@
2.2 (2017-06-23)
-================
+----------------
- Ensure that other plugins can run after this one, in case of a global setting
``--rerun=0``. (Thanks to `@sublee`_ for the PR)
@@ -101,7 +124,7 @@
.. _@sublee: https://github.com/sublee
2.1.0 (2016-11-01)
-==================
+------------------
- Add default value of ``reruns=1`` if ``pytest.mark.flaky()`` is called
without arguments.
@@ -112,7 +135,7 @@
2.0.1 (2016-08-10)
-==================
+-----------------------------
- Prepare CLI options to pytest 3.0, to avoid a deprecation warning.
@@ -121,26 +144,26 @@
2.0.0 (2016-04-06)
-==================
+------------------
- Drop support for Python 3.2, since supporting it became too much of a hassle.
(Reason: Virtualenv 14+ / PIP 8+ do not support Python 3.2 anymore.)
1.0.2 (2016-03-29)
-==================
+------------------
- Add support for `--resultlog` option by parsing reruns accordingly. (#28)
1.0.1 (2016-02-02)
-==================
+------------------
- Improve package description and include CHANGELOG into description.
1.0.0 (2016-02-02)
-==================
+------------------
- Rewrite to use newer API of pytest >= 2.3.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-rerunfailures-6.0/PKG-INFO
new/pytest-rerunfailures-7.0/PKG-INFO
--- old/pytest-rerunfailures-6.0/PKG-INFO 2019-01-08 11:34:21.000000000
+0100
+++ new/pytest-rerunfailures-7.0/PKG-INFO 2019-03-28 08:28:32.000000000
+0100
@@ -1,12 +1,14 @@
Metadata-Version: 1.1
Name: pytest-rerunfailures
-Version: 6.0
+Version: 7.0
Summary: pytest plugin to re-run tests to eliminate flaky failures
Home-page: https://github.com/pytest-dev/pytest-rerunfailures
Author: Leah Klearman
Author-email: [email protected]
License: Mozilla Public License 2.0 (MPL 2.0)
-Description: pytest-rerunfailures
+Description: .. contents::
+
+ pytest-rerunfailures
====================
pytest-rerunfailures is a plugin for `py.test <http://pytest.org>`_
that
@@ -28,7 +30,7 @@
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.8 or newer
+ - pytest 3.10 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
@@ -141,10 +143,33 @@
Changelog
- ---------
+ =========
+
+ 7.0 (2019-03-28)
+ ----------------
+
+ Backwards incompatible changes
+ ++++++++++++++++++++++++++++++
+
+ - Drop support for pytest version 3.8 and 3.9.
+
+ Features
+ ++++++++
+
+ - Add support for pytest version 4.2 and 4.3.
+
+ Bug fixes
+ +++++++++
+
+ - Fixed #83 issue about ignored ``pytest_runtest_logfinish`` hooks.
+ (`#83
<https://github.com/pytest-dev/pytest-rerunfailures/issues/83>`_)
+ (PR from `@KillAChicken`_)
+
+ .. _@KillAChicken: https://github.com/KillAChicken
+
6.0 (2019-01-08)
- ================
+ ----------------
Backwards incompatible changes
++++++++++++++++++++++++++++++
@@ -168,7 +193,7 @@
5.0 (2018-11-06)
- ================
+ ----------------
- Drop support for pytest versions < 3.6 to reduce the maintenance
burden.
@@ -182,7 +207,7 @@
4.2 (2018-10-04)
- ================
+ ----------------
- Fixed #64 issue related to ``setup_class`` and ``fixture``
executions on rerun (Thanks to
`@OlegKuzovkov`_ for the PR).
@@ -194,7 +219,7 @@
4.1 (2018-05-23)
- ================
+ ----------------
- Add support for pytest 3.6 by using ``Node.get_closest_marker()``
(Thanks to
`@The-Compiler`_ for the PR).
@@ -202,7 +227,7 @@
.. _@The-Compiler: https://github.com/The-Compiler
4.0 (2017-12-23)
- ================
+ ----------------
- Added option to add a delay time between test re-runs (Thanks to
`@Kanguros`_
for the PR).
@@ -215,7 +240,7 @@
3.1 (2017-08-29)
- ================
+ ----------------
- Restored compatibility with pytest-xdist. (Thanks to `@davehunt`_
for the PR)
@@ -223,7 +248,7 @@
3.0 (2017-08-17)
- ================
+ ----------------
- Add support for Python 3.6.
@@ -235,7 +260,7 @@
2.2 (2017-06-23)
- ================
+ ----------------
- Ensure that other plugins can run after this one, in case of a
global setting
``--rerun=0``. (Thanks to `@sublee`_ for the PR)
@@ -243,7 +268,7 @@
.. _@sublee: https://github.com/sublee
2.1.0 (2016-11-01)
- ==================
+ ------------------
- Add default value of ``reruns=1`` if ``pytest.mark.flaky()`` is
called
without arguments.
@@ -254,7 +279,7 @@
2.0.1 (2016-08-10)
- ==================
+ -----------------------------
- Prepare CLI options to pytest 3.0, to avoid a deprecation warning.
@@ -263,26 +288,26 @@
2.0.0 (2016-04-06)
- ==================
+ ------------------
- Drop support for Python 3.2, since supporting it became too much of
a hassle.
(Reason: Virtualenv 14+ / PIP 8+ do not support Python 3.2 anymore.)
1.0.2 (2016-03-29)
- ==================
+ ------------------
- Add support for `--resultlog` option by parsing reruns accordingly.
(#28)
1.0.1 (2016-02-02)
- ==================
+ ------------------
- Improve package description and include CHANGELOG into description.
1.0.0 (2016-02-02)
- ==================
+ ------------------
- Rewrite to use newer API of pytest >= 2.3.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-rerunfailures-6.0/README.rst
new/pytest-rerunfailures-7.0/README.rst
--- old/pytest-rerunfailures-6.0/README.rst 2019-01-08 11:34:20.000000000
+0100
+++ new/pytest-rerunfailures-7.0/README.rst 2019-03-28 08:28:31.000000000
+0100
@@ -20,7 +20,7 @@
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.8 or newer
+- pytest 3.10 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
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-rerunfailures-6.0/pytest_rerunfailures.egg-info/PKG-INFO
new/pytest-rerunfailures-7.0/pytest_rerunfailures.egg-info/PKG-INFO
--- old/pytest-rerunfailures-6.0/pytest_rerunfailures.egg-info/PKG-INFO
2019-01-08 11:34:21.000000000 +0100
+++ new/pytest-rerunfailures-7.0/pytest_rerunfailures.egg-info/PKG-INFO
2019-03-28 08:28:32.000000000 +0100
@@ -1,12 +1,14 @@
Metadata-Version: 1.1
Name: pytest-rerunfailures
-Version: 6.0
+Version: 7.0
Summary: pytest plugin to re-run tests to eliminate flaky failures
Home-page: https://github.com/pytest-dev/pytest-rerunfailures
Author: Leah Klearman
Author-email: [email protected]
License: Mozilla Public License 2.0 (MPL 2.0)
-Description: pytest-rerunfailures
+Description: .. contents::
+
+ pytest-rerunfailures
====================
pytest-rerunfailures is a plugin for `py.test <http://pytest.org>`_
that
@@ -28,7 +30,7 @@
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.8 or newer
+ - pytest 3.10 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
@@ -141,10 +143,33 @@
Changelog
- ---------
+ =========
+
+ 7.0 (2019-03-28)
+ ----------------
+
+ Backwards incompatible changes
+ ++++++++++++++++++++++++++++++
+
+ - Drop support for pytest version 3.8 and 3.9.
+
+ Features
+ ++++++++
+
+ - Add support for pytest version 4.2 and 4.3.
+
+ Bug fixes
+ +++++++++
+
+ - Fixed #83 issue about ignored ``pytest_runtest_logfinish`` hooks.
+ (`#83
<https://github.com/pytest-dev/pytest-rerunfailures/issues/83>`_)
+ (PR from `@KillAChicken`_)
+
+ .. _@KillAChicken: https://github.com/KillAChicken
+
6.0 (2019-01-08)
- ================
+ ----------------
Backwards incompatible changes
++++++++++++++++++++++++++++++
@@ -168,7 +193,7 @@
5.0 (2018-11-06)
- ================
+ ----------------
- Drop support for pytest versions < 3.6 to reduce the maintenance
burden.
@@ -182,7 +207,7 @@
4.2 (2018-10-04)
- ================
+ ----------------
- Fixed #64 issue related to ``setup_class`` and ``fixture``
executions on rerun (Thanks to
`@OlegKuzovkov`_ for the PR).
@@ -194,7 +219,7 @@
4.1 (2018-05-23)
- ================
+ ----------------
- Add support for pytest 3.6 by using ``Node.get_closest_marker()``
(Thanks to
`@The-Compiler`_ for the PR).
@@ -202,7 +227,7 @@
.. _@The-Compiler: https://github.com/The-Compiler
4.0 (2017-12-23)
- ================
+ ----------------
- Added option to add a delay time between test re-runs (Thanks to
`@Kanguros`_
for the PR).
@@ -215,7 +240,7 @@
3.1 (2017-08-29)
- ================
+ ----------------
- Restored compatibility with pytest-xdist. (Thanks to `@davehunt`_
for the PR)
@@ -223,7 +248,7 @@
3.0 (2017-08-17)
- ================
+ ----------------
- Add support for Python 3.6.
@@ -235,7 +260,7 @@
2.2 (2017-06-23)
- ================
+ ----------------
- Ensure that other plugins can run after this one, in case of a
global setting
``--rerun=0``. (Thanks to `@sublee`_ for the PR)
@@ -243,7 +268,7 @@
.. _@sublee: https://github.com/sublee
2.1.0 (2016-11-01)
- ==================
+ ------------------
- Add default value of ``reruns=1`` if ``pytest.mark.flaky()`` is
called
without arguments.
@@ -254,7 +279,7 @@
2.0.1 (2016-08-10)
- ==================
+ -----------------------------
- Prepare CLI options to pytest 3.0, to avoid a deprecation warning.
@@ -263,26 +288,26 @@
2.0.0 (2016-04-06)
- ==================
+ ------------------
- Drop support for Python 3.2, since supporting it became too much of
a hassle.
(Reason: Virtualenv 14+ / PIP 8+ do not support Python 3.2 anymore.)
1.0.2 (2016-03-29)
- ==================
+ ------------------
- Add support for `--resultlog` option by parsing reruns accordingly.
(#28)
1.0.1 (2016-02-02)
- ==================
+ ------------------
- Improve package description and include CHANGELOG into description.
1.0.0 (2016-02-02)
- ==================
+ ------------------
- Rewrite to use newer API of pytest >= 2.3.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-rerunfailures-6.0/pytest_rerunfailures.egg-info/requires.txt
new/pytest-rerunfailures-7.0/pytest_rerunfailures.egg-info/requires.txt
--- old/pytest-rerunfailures-6.0/pytest_rerunfailures.egg-info/requires.txt
2019-01-08 11:34:21.000000000 +0100
+++ new/pytest-rerunfailures-7.0/pytest_rerunfailures.egg-info/requires.txt
2019-03-28 08:28:32.000000000 +0100
@@ -1 +1 @@
-pytest>=3.8
+pytest>=3.10
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-rerunfailures-6.0/pytest_rerunfailures.py
new/pytest-rerunfailures-7.0/pytest_rerunfailures.py
--- old/pytest-rerunfailures-6.0/pytest_rerunfailures.py 2019-01-08
11:34:20.000000000 +0100
+++ new/pytest-rerunfailures-7.0/pytest_rerunfailures.py 2019-03-28
08:28:31.000000000 +0100
@@ -168,7 +168,8 @@
parallel = hasattr(item.config, 'slaveinput')
item.execution_count = 0
- while True:
+ need_to_run = True
+ while need_to_run:
item.execution_count += 1
item.ihook.pytest_runtest_logstart(nodeid=item.nodeid,
location=item.location)
@@ -195,7 +196,12 @@
break # trigger rerun
else:
- return True # no need to rerun
+ need_to_run = False
+
+ item.ihook.pytest_runtest_logfinish(nodeid=item.nodeid,
+ location=item.location)
+
+ return True
def pytest_report_teststatus(report):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-rerunfailures-6.0/setup.py
new/pytest-rerunfailures-7.0/setup.py
--- old/pytest-rerunfailures-6.0/setup.py 2019-01-08 11:34:20.000000000
+0100
+++ new/pytest-rerunfailures-7.0/setup.py 2019-03-28 08:28:31.000000000
+0100
@@ -1,9 +1,10 @@
from setuptools import setup
setup(name='pytest-rerunfailures',
- version='6.0',
+ version='7.0',
description='pytest plugin to re-run tests to eliminate flaky failures',
long_description=(
+ '.. contents::\n\n' +
open('README.rst').read() +
'\n\n' +
open('CHANGES.rst').read()),
@@ -12,7 +13,7 @@
url='https://github.com/pytest-dev/pytest-rerunfailures',
py_modules=['pytest_rerunfailures'],
entry_points={'pytest11': ['rerunfailures = pytest_rerunfailures']},
- install_requires=['pytest >= 3.8'],
+ install_requires=['pytest >= 3.10'],
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-6.0/test_pytest_rerunfailures.py
new/pytest-rerunfailures-7.0/test_pytest_rerunfailures.py
--- old/pytest-rerunfailures-6.0/test_pytest_rerunfailures.py 2019-01-08
11:34:20.000000000 +0100
+++ new/pytest-rerunfailures-7.0/test_pytest_rerunfailures.py 2019-03-28
08:28:31.000000000 +0100
@@ -389,6 +389,7 @@
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("""
@@ -399,3 +400,14 @@
""")
result = testdir.runpytest('--reruns', '2')
assert_outcomes(result, failed=1, rerun=2, passed=0)
+
+
+def test_pytest_runtest_logfinish_is_called(testdir):
+ hook_message = "Message from pytest_runtest_logfinish hook"
+ testdir.makepyfile('def test_pass(): pass')
+ testdir.makeconftest(r"""
+ def pytest_runtest_logfinish(nodeid, location):
+ print("\n{0}\n")
+ """.format(hook_message))
+ result = testdir.runpytest('--reruns', '1', '-s')
+ result.stdout.fnmatch_lines(hook_message)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-rerunfailures-6.0/tox.ini
new/pytest-rerunfailures-7.0/tox.ini
--- old/pytest-rerunfailures-6.0/tox.ini 2019-01-08 11:34:20.000000000
+0100
+++ new/pytest-rerunfailures-7.0/tox.ini 2019-03-28 08:28:31.000000000
+0100
@@ -4,14 +4,14 @@
# and then run "tox" from this directory.
[tox]
-envlist = py{27,34,35,36,37,py,py3}-pytest{38,39,310,40,41},
+envlist = py{27,34,35,36,37,py,py3}-pytest{310,40,41,42,43},
[testenv]
commands = py.test test_pytest_rerunfailures.py {posargs}
deps =
mock
- pytest38: pytest==3.8.*
- pytest39: pytest==3.9.*
pytest310: pytest==3.10.*
pytest40: pytest==4.0.*
pytest41: pytest==4.1.*
+ pytest42: pytest==4.2.*
+ pytest43: pytest==4.3.*