Hello community,
here is the log from the commit of package python-pytest-forked for openSUSE:Factory checked in at 2019-02-26 22:14:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-forked (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-forked.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-forked"
Tue Feb 26 22:14:33 2019 rev:2 rq:676365 version:1.0.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pytest-forked/python-pytest-forked.changes 2017-11-16 14:04:00.675108996 +0100
+++ /work/SRC/openSUSE:Factory/.python-pytest-forked.new.28833/python-pytest-forked.changes 2019-02-26 22:14:36.150228062 +0100
@@ -1,0 +2,12 @@
+Fri Feb 15 09:50:14 UTC 2019 - Tomáš Chvátal
+
+- Update to 1.0.2:
+ * Fix support for pytest 4.2
+
+-------------------------------------------------------------------
+Thu Feb 14 12:55:27 UTC 2019 - Tomáš Chvátal
+
+- Update to 1.0.0:
+ * Fix support for pytest 4.1.
+
+-------------------------------------------------------------------
Old:
----
pytest-forked-0.2.tar.gz
New:
----
pytest-forked-1.0.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-forked.spec ++++++
--- /var/tmp/diff_new_pack.lhLmuw/_old 2019-02-26 22:14:36.590227908 +0100
+++ /var/tmp/diff_new_pack.lhLmuw/_new 2019-02-26 22:14:36.594227906 +0100
@@ -1,7 +1,7 @@
#
-# spec file for package python-pytest-pythonpath
+# spec file for package python-pytest-forked
#
-# Copyright (c) 2017 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
@@ -12,23 +12,25 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-forked
-Version: 0.2
+Version: 1.0.2
Release: 0
Summary: Run each test in a forked subprocess
License: MIT
Group: Development/Languages/Python
URL: https://github.com/pytest-dev/pytest-forked
Source: https://files.pythonhosted.org/packages/source/p/pytest-forked/pytest-forked-%{version}.tar.gz
+BuildRequires: %{python_module pytest >= 3.1.0}
BuildRequires: %{python_module setuptools_scm}
+BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
-Requires: python-pytest
+Requires: python-pytest >= 3.1.0
BuildArch: noarch
%python_subpackages
@@ -45,6 +47,8 @@
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%check
+%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v
%files %{python_files}
%license LICENSE
++++++ pytest-forked-0.2.tar.gz -> pytest-forked-1.0.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-0.2/.gitignore new/pytest-forked-1.0.2/.gitignore
--- old/pytest-forked-0.2/.gitignore 2017-07-28 17:52:53.000000000 +0200
+++ new/pytest-forked-1.0.2/.gitignore 2019-02-14 17:13:20.000000000 +0100
@@ -5,4 +5,4 @@
.tox/
build/
dist/
-pytest_boxed.egg-info/
\ No newline at end of file
+src/pytest_forked.egg-info/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-0.2/.travis.yml new/pytest-forked-1.0.2/.travis.yml
--- old/pytest-forked-0.2/.travis.yml 2016-10-11 21:46:25.000000000 +0200
+++ new/pytest-forked-1.0.2/.travis.yml 2019-02-14 17:13:20.000000000 +0100
@@ -2,21 +2,20 @@
language: python
python:
- '2.7'
-- '3.4'
- '3.5'
+- '3.6'
cache: pip
install: pip install -U tox setuptools_scm
env:
matrix:
- - TOXENV=py-pytest27
- - TOXENV=py-pytest28
- - TOXENV=py-pytest29
- - TOXENV=py-pytest30
+ - TOXENV=py-pytest31
+ - TOXENV=py-pytest40
+ - TOXENV=py-pytestlatest
matrix:
include:
- - python: '2.7'
+ - python: '3.6'
env: TOXENV=flakes
- - python: '2.7'
+ - python: '3.6'
env: TOXENV=readme
script: tox
notifications:
@@ -30,10 +29,10 @@
- pytest-commit@python.org
deploy:
provider: pypi
- user: ronny
+ user: nicoddemus
password:
- secure: cxmSDho5d+PYKEM4ZCg8ms1P4lzhYkrw6fEOm2HtTcsuCyY6aZMSgImWAnEYbJHSkdzgcxlXK9UKJ9B0YenXmBCkAr7UjdnpNXNmkySr0sYzlH/sfqt/dDATCHFaRKxnkOSOVywaDYhT9n8YudbXI77pXwD12i/CeSSJDbHhsu0JYUfAcb+D6YjRYoA2SEGCnzSzg+gDDfwXZx4ZiODCGLVwieNp1klCg88YROUE1BaYYNuUOONvfXX8+TWowbCF6ChH1WL/bZ49OStEYQNuYxZQZr4yClIqu9VJbchrU8j860K9ott2kkGTgfB/dDrQB/XncBubyIX9ikzCQAmmBXWAI3eyvWLPDk2Jz7kW2l2RT7syct80tCq3JhvQ1qdwr5ap7siocTLgnBW0tF4tkHSTFN3510fkc43npnp6FThebESQpnI24vqpwJ9hI/kW5mYi014Og2E/cpCXnz2XO8iZPDbqAMQpDsqEQoyhfGNgPTGp4K30TxRtwZBI5hHhDKnnR16fXtRgt1gYPvz/peUQvvpOm4JzIzGXPzluuutpnCBy75v5+oiwT3YRrLL/Meims9FtDDXL3qQubAE/ezIOOpm0N5XXV8DxIom8EN71yq5ab1tqhM+tBX7owRjy4FR4If2Q8feBdmTuh26DIQt/y+qSG8VkB9Sw/JCjc7c=
+ secure: KJgDEXYiKYNiV1Ef0kCYrJr3LvIUrZbEnwc/x5eTXpLHZCLmiJ33tbYDRLzX+uWcvqXpFjVjEtWHOOfhP9sRPl4jbmM0MJrNmO4mqTSCzN1VnVx9fPJXpD74rtjLxMsZNrHjqEWWjeqsqDryGID7O3zm0f/p/FqKEYKBCffhc2AyJN4Bb1d564JLwM1dZUPGAWU5spkDB/0gSvTGtQ1gxl5xtEAwMX59gWzwJ96kj5qKGPBXdQLWPkhXz45/5XQUdxjwJjyRJws5EoCzOD+E/C+Tcc3NKCkksZUGejt7cBpU+rFpqzGSUDv5KBsQoXELElC2yXxFJhqrfoTFkxZqFc4qSvnYRlOlx9M2FPsUqnOwS5RlEgGmadjN4CJe0mlxS+/Yx1V1aDSnaFFCWLsApMDbKgoozB6NPQvSraOvRF28J7CsTSFCvbI1dR1lEYhZVc5XTwt0mI/0w4iXkvGNMJ0Sb0grqj7rPEPiuf1RU/Y9CNtR/yhez02zbYjIzgERUB6Sq3YGg1q2cefkvoiq3eWWV4vf8e1rXVdvs/UdJnj8zTwMbiaWh13CCu+Z8bTEKgaiUAOaTs0y1mxPg4dRGJdVCPceUn3pMeeTl2XBxWr9CkMhDY06IMLd2PmyYfVYIWUkssT235ALZ5kPdk1TmiqmtbKyd+pAga1IWtFbOCY=
on:
tags: true
distributions: sdist bdist_wheel
- repo: pytest-dev/pytest-boxed
+ repo: pytest-dev/pytest-forked
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-0.2/CHANGELOG new/pytest-forked-1.0.2/CHANGELOG
--- old/pytest-forked-0.2/CHANGELOG 2016-10-11 20:50:33.000000000 +0200
+++ new/pytest-forked-1.0.2/CHANGELOG 2019-02-14 17:13:20.000000000 +0100
@@ -1,4 +1,14 @@
+v1.0.2
+======
+
+* Fix support for pytest 4.2.
+
+v1.0.1
+======
+
+* Fix support for pytest 4.1.
+
v1.0
=====
-* just a takeout of pytest-xdist
\ No newline at end of file
+* just a takeout of pytest-xdist
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-0.2/PKG-INFO new/pytest-forked-1.0.2/PKG-INFO
--- old/pytest-forked-0.2/PKG-INFO 2017-08-04 20:59:11.000000000 +0200
+++ new/pytest-forked-1.0.2/PKG-INFO 2019-02-14 17:13:55.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: pytest-forked
-Version: 0.2
+Version: 1.0.2
Summary: run tests in isolated forked subprocesses
Home-page: https://github.com/pytest-dev/pytest-forked
Author: pytest-dev
@@ -13,11 +13,14 @@
.. warning::
this is a extraction of the xdist --forked module,
- future maintenance beyond the bare minimum is not plannend until a new maintainer is found
+ future maintenance beyond the bare minimum is not planned until a new maintainer is found.
- * ``--forked``: (not available on Windows) run each test in a forked
- subprocess to survive ``SEGFAULTS`` or otherwise dying processes
+ This plugin **does not work on Windows** because there's no ``fork`` support.
+
+
+ * ``--forked``: run each test in a forked
+ subprocess to survive ``SEGFAULTS`` or otherwise dying processes.
Installation
@@ -54,6 +57,7 @@
.. _`pytest-forked repository`: https://github.com/pytest-dev/pytest-forked
+
Platform: linux
Platform: osx
Classifier: Development Status :: 7 - Inactive
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-0.2/README.rst new/pytest-forked-1.0.2/README.rst
--- old/pytest-forked-0.2/README.rst 2017-08-04 20:55:11.000000000 +0200
+++ new/pytest-forked-1.0.2/README.rst 2019-02-14 17:13:20.000000000 +0100
@@ -5,11 +5,14 @@
.. warning::
this is a extraction of the xdist --forked module,
- future maintenance beyond the bare minimum is not plannend until a new maintainer is found
+ future maintenance beyond the bare minimum is not planned until a new maintainer is found.
-* ``--forked``: (not available on Windows) run each test in a forked
- subprocess to survive ``SEGFAULTS`` or otherwise dying processes
+This plugin **does not work on Windows** because there's no ``fork`` support.
+
+
+* ``--forked``: run each test in a forked
+ subprocess to survive ``SEGFAULTS`` or otherwise dying processes.
Installation
@@ -45,4 +48,4 @@
create new forked subprocesses for each test.
-.. _`pytest-forked repository`: https://github.com/pytest-dev/pytest-forked
\ No newline at end of file
+.. _`pytest-forked repository`: https://github.com/pytest-dev/pytest-forked
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-0.2/setup.py new/pytest-forked-1.0.2/setup.py
--- old/pytest-forked-0.2/setup.py 2017-08-04 20:28:18.000000000 +0200
+++ new/pytest-forked-1.0.2/setup.py 2019-02-14 17:13:20.000000000 +0100
@@ -18,7 +18,7 @@
],
},
zip_safe=False,
- install_requires=['pytest>=2.6.0'],
+ install_requires=['pytest>=3.1.0'],
setup_requires=['setuptools_scm'],
classifiers=[
'Development Status :: 7 - Inactive',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-0.2/src/pytest_forked/__init__.py new/pytest-forked-1.0.2/src/pytest_forked/__init__.py
--- old/pytest-forked-0.2/src/pytest_forked/__init__.py 2017-08-04 20:04:58.000000000 +0200
+++ new/pytest-forked-1.0.2/src/pytest_forked/__init__.py 2019-02-14 17:13:20.000000000 +0100
@@ -1,4 +1,4 @@
-
+import os
import py
# we know this bit is bad, but we cant help it with the current pytest setup
from _pytest import runner
@@ -49,7 +49,7 @@
try:
reports = runtestprotocol(item, log=False)
except KeyboardInterrupt:
- py.std.os._exit(EXITSTATUS_TESTEXIT)
+ os._exit(EXITSTATUS_TESTEXIT)
return marshal.dumps([serialize_report(x) for x in reports])
ff = py.process.ForkedFunc(runforked)
@@ -59,16 +59,27 @@
return [runner.TestReport(**x) for x in report_dumps]
else:
if result.exitstatus == EXITSTATUS_TESTEXIT:
- py.test.exit("forked test item %s raised Exit" % (item,))
+ pytest.exit("forked test item %s raised Exit" % (item,))
return [report_process_crash(item, result)]
def report_process_crash(item, result):
- path, lineno = item._getfslineno()
+ try:
+ from _pytest.compat import getfslineno
+ except ImportError:
+ # pytest<4.2
+ path, lineno = item._getfslineno()
+ else:
+ path, lineno = getfslineno(item)
info = ("%s:%s: running the test CRASHED with signal %d" %
(path, lineno, result.signal))
from _pytest import runner
- call = runner.CallInfo(lambda: 0/0, "???")
+ # pytest >= 4.1
+ has_from_call = getattr(runner.CallInfo, "from_call", None) is not None
+ if has_from_call:
+ call = runner.CallInfo.from_call(lambda: 0/0, "???")
+ else:
+ call = runner.CallInfo(lambda: 0/0, "???")
call.excinfo = info
rep = runner.pytest_runtest_makereport(item, call)
if result.out:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-0.2/src/pytest_forked.egg-info/PKG-INFO new/pytest-forked-1.0.2/src/pytest_forked.egg-info/PKG-INFO
--- old/pytest-forked-0.2/src/pytest_forked.egg-info/PKG-INFO 2017-08-04 20:59:11.000000000 +0200
+++ new/pytest-forked-1.0.2/src/pytest_forked.egg-info/PKG-INFO 2019-02-14 17:13:55.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: pytest-forked
-Version: 0.2
+Version: 1.0.2
Summary: run tests in isolated forked subprocesses
Home-page: https://github.com/pytest-dev/pytest-forked
Author: pytest-dev
@@ -13,11 +13,14 @@
.. warning::
this is a extraction of the xdist --forked module,
- future maintenance beyond the bare minimum is not plannend until a new maintainer is found
+ future maintenance beyond the bare minimum is not planned until a new maintainer is found.
- * ``--forked``: (not available on Windows) run each test in a forked
- subprocess to survive ``SEGFAULTS`` or otherwise dying processes
+ This plugin **does not work on Windows** because there's no ``fork`` support.
+
+
+ * ``--forked``: run each test in a forked
+ subprocess to survive ``SEGFAULTS`` or otherwise dying processes.
Installation
@@ -54,6 +57,7 @@
.. _`pytest-forked repository`: https://github.com/pytest-dev/pytest-forked
+
Platform: linux
Platform: osx
Classifier: Development Status :: 7 - Inactive
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-0.2/src/pytest_forked.egg-info/SOURCES.txt new/pytest-forked-1.0.2/src/pytest_forked.egg-info/SOURCES.txt
--- old/pytest-forked-0.2/src/pytest_forked.egg-info/SOURCES.txt 2017-08-04 20:59:11.000000000 +0200
+++ new/pytest-forked-1.0.2/src/pytest_forked.egg-info/SOURCES.txt 2019-02-14 17:13:55.000000000 +0100
@@ -18,13 +18,4 @@
src/pytest_forked.egg-info/requires.txt
src/pytest_forked.egg-info/top_level.txt
testing/conftest.py
-testing/conftest.pyc
-testing/test_boxed.py
-testing/__pycache__/conftest.cpython-27-PYTEST.pyc
-testing/__pycache__/conftest.cpython-35-PYTEST.pyc
-testing/__pycache__/conftest.cpython-35.pyc
-testing/__pycache__/conftest.cpython-36-PYTEST.pyc
-testing/__pycache__/conftest.cpython-36.pyc
-testing/__pycache__/test_boxed.cpython-27-PYTEST.pyc
-testing/__pycache__/test_boxed.cpython-35-PYTEST.pyc
-testing/__pycache__/test_boxed.cpython-36-PYTEST.pyc
\ No newline at end of file
+testing/test_boxed.py
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-0.2/src/pytest_forked.egg-info/requires.txt new/pytest-forked-1.0.2/src/pytest_forked.egg-info/requires.txt
--- old/pytest-forked-0.2/src/pytest_forked.egg-info/requires.txt 2017-08-04 20:59:11.000000000 +0200
+++ new/pytest-forked-1.0.2/src/pytest_forked.egg-info/requires.txt 2019-02-14 17:13:55.000000000 +0100
@@ -1 +1 @@
-pytest>=2.6.0
+pytest>=3.1.0
Binary files old/pytest-forked-0.2/testing/__pycache__/conftest.cpython-27-PYTEST.pyc and new/pytest-forked-1.0.2/testing/__pycache__/conftest.cpython-27-PYTEST.pyc differ
Binary files old/pytest-forked-0.2/testing/__pycache__/conftest.cpython-35-PYTEST.pyc and new/pytest-forked-1.0.2/testing/__pycache__/conftest.cpython-35-PYTEST.pyc differ
Binary files old/pytest-forked-0.2/testing/__pycache__/conftest.cpython-35.pyc and new/pytest-forked-1.0.2/testing/__pycache__/conftest.cpython-35.pyc differ
Binary files old/pytest-forked-0.2/testing/__pycache__/conftest.cpython-36-PYTEST.pyc and new/pytest-forked-1.0.2/testing/__pycache__/conftest.cpython-36-PYTEST.pyc differ
Binary files old/pytest-forked-0.2/testing/__pycache__/conftest.cpython-36.pyc and new/pytest-forked-1.0.2/testing/__pycache__/conftest.cpython-36.pyc differ
Binary files old/pytest-forked-0.2/testing/__pycache__/test_boxed.cpython-27-PYTEST.pyc and new/pytest-forked-1.0.2/testing/__pycache__/test_boxed.cpython-27-PYTEST.pyc differ
Binary files old/pytest-forked-0.2/testing/__pycache__/test_boxed.cpython-35-PYTEST.pyc and new/pytest-forked-1.0.2/testing/__pycache__/test_boxed.cpython-35-PYTEST.pyc differ
Binary files old/pytest-forked-0.2/testing/__pycache__/test_boxed.cpython-36-PYTEST.pyc and new/pytest-forked-1.0.2/testing/__pycache__/test_boxed.cpython-36-PYTEST.pyc differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-0.2/testing/conftest.py new/pytest-forked-1.0.2/testing/conftest.py
--- old/pytest-forked-0.2/testing/conftest.py 2016-10-11 21:22:44.000000000 +0200
+++ new/pytest-forked-1.0.2/testing/conftest.py 2019-02-14 17:13:20.000000000 +0100
@@ -7,11 +7,11 @@
@pytest.fixture(autouse=True)
def _divert_atexit(request, monkeypatch):
import atexit
- l = []
+ atexit_fns = []
def finish():
- while l:
- l.pop()()
+ while atexit_fns:
+ atexit_fns.pop()()
- monkeypatch.setattr(atexit, "register", l.append)
+ monkeypatch.setattr(atexit, "register", atexit_fns.append)
request.addfinalizer(finish)
Binary files old/pytest-forked-0.2/testing/conftest.pyc and new/pytest-forked-1.0.2/testing/conftest.pyc differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-0.2/testing/test_boxed.py new/pytest-forked-1.0.2/testing/test_boxed.py
--- old/pytest-forked-0.2/testing/test_boxed.py 2017-08-04 20:05:42.000000000 +0200
+++ new/pytest-forked-1.0.2/testing/test_boxed.py 2019-02-14 17:13:20.000000000 +0100
@@ -22,8 +22,8 @@
@needsfork
@pytest.mark.parametrize("capmode", [
"no",
- pytest.mark.xfail("sys", reason="capture cleanup needed"),
- pytest.mark.xfail("fd", reason="capture cleanup needed")])
+ pytest.param("sys", marks=pytest.mark.xfail(reason="capture cleanup needed")),
+ pytest.param("fd", marks=pytest.mark.xfail(reason="capture cleanup needed"))])
def test_functional_boxed_capturing(testdir, capmode):
p1 = testdir.makepyfile("""
import os
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-0.2/tox.ini new/pytest-forked-1.0.2/tox.ini
--- old/pytest-forked-0.2/tox.ini 2017-07-28 16:26:36.000000000 +0200
+++ new/pytest-forked-1.0.2/tox.ini 2019-02-14 17:13:20.000000000 +0100
@@ -1,20 +1,19 @@
[tox]
# if you change the envlist, please update .travis.yml file as well
envlist=
- py{27,35,36}-pytest{29,30,31}
+ py{27,35,36}-pytest{31,40,latest}
flakes
- readme
-
+ readme
[testenv]
deps =
pycmd
# to avoid .eggs
setuptools_scm
- pytest29: pytest~=2.9.1
- pytest30: pytest~=3.0.1
- pytest31: pytest~=3.1.1
-platform=linux|darwin
+ pytest31: pytest~=3.1
+ pytest40: pytest~=4.0
+ pytestlatest: pytest
+platform=linux|darwin
commands=
py.test {posargs}
@@ -29,7 +28,8 @@
skip_install = true
commands = python setup.py check -r -s
-
[pytest]
addopts = -rsfxX
-;; hello
+
+[flake8]
+max-line-length = 88