Hello community,
here is the log from the commit of package python-pytest-xdist for
openSUSE:Factory checked in at 2018-01-13 21:48:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-xdist (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-xdist.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-xdist"
Sat Jan 13 21:48:26 2018 rev:4 rq:563777 version:1.22.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pytest-xdist/python-pytest-xdist.changes
2018-01-05 01:04:47.544675722 +0100
+++
/work/SRC/openSUSE:Factory/.python-pytest-xdist.new/python-pytest-xdist.changes
2018-01-13 21:48:28.471761390 +0100
@@ -1,0 +2,7 @@
+Thu Jan 11 23:58:44 UTC 2018 - [email protected]
+
+- update to version 1.22.0:
+ * Add support for the pytest_runtest_logfinish hook which will be
+ released in pytest 3.4. (#266)
+
+-------------------------------------------------------------------
Old:
----
pytest-xdist-1.21.0.tar.gz
New:
----
pytest-xdist-1.22.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-xdist.spec ++++++
--- /var/tmp/diff_new_pack.V9a4oN/_old 2018-01-13 21:48:29.263724467 +0100
+++ /var/tmp/diff_new_pack.V9a4oN/_new 2018-01-13 21:48:29.263724467 +0100
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-xdist
-Version: 1.21.0
+Version: 1.22.0
Release: 0
Summary: Distributed testing and loop-on-failing for py.test
License: MIT
++++++ pytest-xdist-1.21.0.tar.gz -> pytest-xdist-1.22.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-xdist-1.21.0/CHANGELOG.rst
new/pytest-xdist-1.22.0/CHANGELOG.rst
--- old/pytest-xdist-1.21.0/CHANGELOG.rst 2017-12-26 13:55:58.000000000
+0100
+++ new/pytest-xdist-1.22.0/CHANGELOG.rst 2018-01-11 21:10:40.000000000
+0100
@@ -1,3 +1,14 @@
+pytest-xdist 1.22.0 (2018-01-11)
+================================
+
+Features
+--------
+
+- Add support for the ``pytest_runtest_logfinish`` hook which will be released
+ in pytest 3.4. (`#266
+ <https://github.com/pytest-dev/pytest-xdist/issues/266>`_)
+
+
pytest-xdist 1.21.0 (2017-12-22)
================================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-xdist-1.21.0/PKG-INFO
new/pytest-xdist-1.22.0/PKG-INFO
--- old/pytest-xdist-1.21.0/PKG-INFO 2017-12-26 13:56:21.000000000 +0100
+++ new/pytest-xdist-1.22.0/PKG-INFO 2018-01-11 21:11:02.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: pytest-xdist
-Version: 1.21.0
+Version: 1.22.0
Summary: py.test xdist plugin for distributed testing and loop-on-failing modes
Home-page: https://github.com/pytest-dev/pytest-xdist
Author: holger krekel and contributors
@@ -53,6 +53,9 @@
are reported back and displayed to your local terminal.
You may specify different Python versions and interpreters.
+ If you would like to know how pytest-xdist works under the covers,
checkout
+ `OVERVIEW
<https://github.com/pytest-dev/pytest-xdist/blob/master/OVERVIEW.md>`_.
+
Installation
-----------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-xdist-1.21.0/README.rst
new/pytest-xdist-1.22.0/README.rst
--- old/pytest-xdist-1.21.0/README.rst 2017-12-26 13:55:58.000000000 +0100
+++ new/pytest-xdist-1.22.0/README.rst 2018-01-11 21:10:40.000000000 +0100
@@ -44,6 +44,9 @@
are reported back and displayed to your local terminal.
You may specify different Python versions and interpreters.
+If you would like to know how pytest-xdist works under the covers, checkout
+`OVERVIEW
<https://github.com/pytest-dev/pytest-xdist/blob/master/OVERVIEW.md>`_.
+
Installation
-----------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-xdist-1.21.0/pytest_xdist.egg-info/PKG-INFO
new/pytest-xdist-1.22.0/pytest_xdist.egg-info/PKG-INFO
--- old/pytest-xdist-1.21.0/pytest_xdist.egg-info/PKG-INFO 2017-12-26
13:56:21.000000000 +0100
+++ new/pytest-xdist-1.22.0/pytest_xdist.egg-info/PKG-INFO 2018-01-11
21:11:02.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: pytest-xdist
-Version: 1.21.0
+Version: 1.22.0
Summary: py.test xdist plugin for distributed testing and loop-on-failing modes
Home-page: https://github.com/pytest-dev/pytest-xdist
Author: holger krekel and contributors
@@ -53,6 +53,9 @@
are reported back and displayed to your local terminal.
You may specify different Python versions and interpreters.
+ If you would like to know how pytest-xdist works under the covers,
checkout
+ `OVERVIEW
<https://github.com/pytest-dev/pytest-xdist/blob/master/OVERVIEW.md>`_.
+
Installation
-----------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-xdist-1.21.0/testing/acceptance_test.py
new/pytest-xdist-1.22.0/testing/acceptance_test.py
--- old/pytest-xdist-1.21.0/testing/acceptance_test.py 2017-12-26
13:55:58.000000000 +0100
+++ new/pytest-xdist-1.22.0/testing/acceptance_test.py 2018-01-11
21:10:40.000000000 +0100
@@ -375,6 +375,25 @@
"*1 passed, 1 warnings*",
])
+ def test_logfinish_hook(self, testdir):
+ """Ensure the pytest_runtest_logfinish hook is being properly
handled"""
+ from _pytest import hookspec
+ if not hasattr(hookspec, 'pytest_runtest_logfinish'):
+ pytest.skip('test requires pytest_runtest_logfinish hook in pytest
(3.4+)')
+
+ testdir.makeconftest("""
+ def pytest_runtest_logfinish():
+ print('pytest_runtest_logfinish hook called')
+ """)
+ testdir.makepyfile("""
+ def test_func():
+ pass
+ """)
+ result = testdir.runpytest("-n1", "-s")
+ result.stdout.fnmatch_lines([
+ "*pytest_runtest_logfinish hook called*",
+ ])
+
def test_teardownfails_one_function(testdir):
p = testdir.makepyfile("""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-xdist-1.21.0/xdist/_version.py
new/pytest-xdist-1.22.0/xdist/_version.py
--- old/pytest-xdist-1.21.0/xdist/_version.py 2017-12-26 13:56:21.000000000
+0100
+++ new/pytest-xdist-1.22.0/xdist/_version.py 2018-01-11 21:11:02.000000000
+0100
@@ -1,4 +1,4 @@
# coding: utf-8
# file generated by setuptools_scm
# don't change, don't track in version control
-version = '1.21.0'
+version = '1.22.0'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-xdist-1.21.0/xdist/dsession.py
new/pytest-xdist-1.22.0/xdist/dsession.py
--- old/pytest-xdist-1.21.0/xdist/dsession.py 2017-12-26 13:55:58.000000000
+0100
+++ new/pytest-xdist-1.22.0/xdist/dsession.py 2018-01-11 21:10:40.000000000
+0100
@@ -235,6 +235,11 @@
self.config.hook.pytest_runtest_logstart(
nodeid=nodeid, location=location)
+ def slave_logfinish(self, node, nodeid, location):
+ """Emitted when a node calls the pytest_runtest_logfinish hook."""
+ self.config.hook.pytest_runtest_logfinish(
+ nodeid=nodeid, location=location)
+
def slave_testreport(self, node, rep):
"""Emitted when a node calls the pytest_runtest_logreport hook."""
rep.node = node
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-xdist-1.21.0/xdist/remote.py
new/pytest-xdist-1.22.0/xdist/remote.py
--- old/pytest-xdist-1.21.0/xdist/remote.py 2017-12-26 13:55:58.000000000
+0100
+++ new/pytest-xdist-1.22.0/xdist/remote.py 2018-01-11 21:10:40.000000000
+0100
@@ -9,6 +9,8 @@
import sys
import os
import time
+
+import _pytest.hookspec
import pytest
@@ -93,6 +95,11 @@
def pytest_runtest_logstart(self, nodeid, location):
self.sendevent("logstart", nodeid=nodeid, location=location)
+ # the pytest_runtest_logfinish hook was introduced in pytest 3.4
+ if hasattr(_pytest.hookspec, 'pytest_runtest_logfinish'):
+ def pytest_runtest_logfinish(self, nodeid, location):
+ self.sendevent("logfinish", nodeid=nodeid, location=location)
+
def pytest_runtest_logreport(self, report):
data = serialize_report(report)
data["item_index"] = self.item_index
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-xdist-1.21.0/xdist/slavemanage.py
new/pytest-xdist-1.22.0/xdist/slavemanage.py
--- old/pytest-xdist-1.21.0/xdist/slavemanage.py 2017-12-26
13:55:58.000000000 +0100
+++ new/pytest-xdist-1.22.0/xdist/slavemanage.py 2018-01-11
21:10:40.000000000 +0100
@@ -304,7 +304,7 @@
self._down = True
self.slaveoutput = kwargs['slaveoutput']
self.notify_inproc("slavefinished", node=self)
- elif eventname == "logstart":
+ elif eventname in ("logstart", "logfinish"):
self.notify_inproc(eventname, node=self, **kwargs)
elif eventname in (
"testreport", "collectreport", "teardownreport"):