Hello community, here is the log from the commit of package python-pytest-forked for openSUSE:Leap:15.2 checked in at 2020-04-28 20:09:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/python-pytest-forked (Old) and /work/SRC/openSUSE:Leap:15.2/.python-pytest-forked.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-forked" Tue Apr 28 20:09:34 2020 rev:11 rq:795794 version:1.1.3 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/python-pytest-forked/python-pytest-forked.changes 2020-01-15 15:52:17.307558186 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-pytest-forked.new.2738/python-pytest-forked.changes 2020-04-28 20:09:35.636339521 +0200 @@ -1,0 +2,18 @@ +Tue Nov 5 10:56:22 UTC 2019 - Tomáš Chvátal <tchva...@suse.com> + +- Update to 1.1.3: + * New marker `pytest.mark.forked` to fork before individual tests. + +------------------------------------------------------------------- +Fri Feb 15 09:50:14 UTC 2019 - Tomáš Chvátal <tchva...@suse.com> + +- Update to 1.0.2: + * Fix support for pytest 4.2 + +------------------------------------------------------------------- +Thu Feb 14 12:55:27 UTC 2019 - Tomáš Chvátal <tchva...@suse.com> + +- Update to 1.0.0: + * Fix support for pytest 4.1. + +------------------------------------------------------------------- Old: ---- pytest-forked-0.2.tar.gz New: ---- pytest-forked-1.1.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pytest-forked.spec ++++++ --- /var/tmp/diff_new_pack.sLn9yw/_old 2020-04-28 20:09:36.004340285 +0200 +++ /var/tmp/diff_new_pack.sLn9yw/_new 2020-04-28 20:09:36.004340285 +0200 @@ -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,24 @@ # 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.1.3 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 +46,8 @@ %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%pytest %files %{python_files} %license LICENSE ++++++ pytest-forked-0.2.tar.gz -> pytest-forked-1.1.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-0.2/.gitignore new/pytest-forked-1.1.3/.gitignore --- old/pytest-forked-0.2/.gitignore 2017-07-28 17:52:53.000000000 +0200 +++ new/pytest-forked-1.1.3/.gitignore 2019-10-22 18:12:49.000000000 +0200 @@ -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.1.3/.travis.yml --- old/pytest-forked-0.2/.travis.yml 2016-10-11 21:46:25.000000000 +0200 +++ new/pytest-forked-1.1.3/.travis.yml 2019-10-22 18:12:49.000000000 +0200 @@ -2,22 +2,34 @@ language: python python: - '2.7' -- '3.4' - '3.5' +- '3.6' +- '3.7' 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.7' env: TOXENV=flakes - - python: '2.7' + - python: '3.7' env: TOXENV=readme + + # piggyback on existing build for releases + deploy: + provider: pypi + user: nicoddemus + password: + secure: KJgDEXYiKYNiV1Ef0kCYrJr3LvIUrZbEnwc/x5eTXpLHZCLmiJ33tbYDRLzX+uWcvqXpFjVjEtWHOOfhP9sRPl4jbmM0MJrNmO4mqTSCzN1VnVx9fPJXpD74rtjLxMsZNrHjqEWWjeqsqDryGID7O3zm0f/p/FqKEYKBCffhc2AyJN4Bb1d564JLwM1dZUPGAWU5spkDB/0gSvTGtQ1gxl5xtEAwMX59gWzwJ96kj5qKGPBXdQLWPkhXz45/5XQUdxjwJjyRJws5EoCzOD+E/C+Tcc3NKCkksZUGejt7cBpU+rFpqzGSUDv5KBsQoXELElC2yXxFJhqrfoTFkxZqFc4qSvnYRlOlx9M2FPsUqnOwS5RlEgGmadjN4CJe0mlxS+/Yx1V1aDSnaFFCWLsApMDbKgoozB6NPQvSraOvRF28J7CsTSFCvbI1dR1lEYhZVc5XTwt0mI/0w4iXkvGNMJ0Sb0grqj7rPEPiuf1RU/Y9CNtR/yhez02zbYjIzgERUB6Sq3YGg1q2cefkvoiq3eWWV4vf8e1rXVdvs/UdJnj8zTwMbiaWh13CCu+Z8bTEKgaiUAOaTs0y1mxPg4dRGJdVCPceUn3pMeeTl2XBxWr9CkMhDY06IMLd2PmyYfVYIWUkssT235ALZ5kPdk1TmiqmtbKyd+pAga1IWtFbOCY= + on: + tags: true + repo: pytest-dev/pytest-forked + distributions: sdist bdist_wheel + script: tox notifications: irc: @@ -28,12 +40,3 @@ skip_join: true email: - pytest-com...@python.org -deploy: - provider: pypi - user: ronny - password: - secure: cxmSDho5d+PYKEM4ZCg8ms1P4lzhYkrw6fEOm2HtTcsuCyY6aZMSgImWAnEYbJHSkdzgcxlXK9UKJ9B0YenXmBCkAr7UjdnpNXNmkySr0sYzlH/sfqt/dDATCHFaRKxnkOSOVywaDYhT9n8YudbXI77pXwD12i/CeSSJDbHhsu0JYUfAcb+D6YjRYoA2SEGCnzSzg+gDDfwXZx4ZiODCGLVwieNp1klCg88YROUE1BaYYNuUOONvfXX8+TWowbCF6ChH1WL/bZ49OStEYQNuYxZQZr4yClIqu9VJbchrU8j860K9ott2kkGTgfB/dDrQB/XncBubyIX9ikzCQAmmBXWAI3eyvWLPDk2Jz7kW2l2RT7syct80tCq3JhvQ1qdwr5ap7siocTLgnBW0tF4tkHSTFN3510fkc43npnp6FThebESQpnI24vqpwJ9hI/kW5mYi014Og2E/cpCXnz2XO8iZPDbqAMQpDsqEQoyhfGNgPTGp4K30TxRtwZBI5hHhDKnnR16fXtRgt1gYPvz/peUQvvpOm4JzIzGXPzluuutpnCBy75v5+oiwT3YRrLL/Meims9FtDDXL3qQubAE/ezIOOpm0N5XXV8DxIom8EN71yq5ab1tqhM+tBX7owRjy4FR4If2Q8feBdmTuh26DIQt/y+qSG8VkB9Sw/JCjc7c= - on: - tags: true - distributions: sdist bdist_wheel - repo: pytest-dev/pytest-boxed diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-0.2/CHANGELOG new/pytest-forked-1.1.3/CHANGELOG --- old/pytest-forked-0.2/CHANGELOG 2016-10-11 20:50:33.000000000 +0200 +++ new/pytest-forked-1.1.3/CHANGELOG 2019-10-22 18:12:49.000000000 +0200 @@ -1,4 +1,34 @@ +v1.1.3 +====== + +* Another dummy release to sort out missing wheels (hopefully). + +v1.1.2 +====== + +* Another dummy release to sort out missing wheels (hopefully). + +v1.1.1 +====== + +* Dummy release to sort out CI issues. + +v1.1.0 +====== + +* New marker `pytest.mark.forked` to fork before individual tests. + +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/MANIFEST.in new/pytest-forked-1.1.3/MANIFEST.in --- old/pytest-forked-0.2/MANIFEST.in 2016-10-11 20:50:05.000000000 +0200 +++ new/pytest-forked-1.1.3/MANIFEST.in 2019-10-22 18:12:49.000000000 +0200 @@ -1,5 +1,6 @@ include CHANGELOG include LICENSE +include pyproject.toml include README.txt include setup.py include tox.ini diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-0.2/PKG-INFO new/pytest-forked-1.1.3/PKG-INFO --- old/pytest-forked-0.2/PKG-INFO 2017-08-04 20:59:11.000000000 +0200 +++ new/pytest-forked-1.1.3/PKG-INFO 2019-10-22 18:13:20.000000000 +0200 @@ -1,6 +1,6 @@ -Metadata-Version: 1.1 +Metadata-Version: 1.2 Name: pytest-forked -Version: 0.2 +Version: 1.1.3 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 @@ -40,20 +43,31 @@ with tests crashing the process. For this case you may use the boxing options:: - py.test --forked + pytest --forked which will run each test in a subprocess and will report if a test crashed the process. You can also combine this option with running multiple processes via pytest-xdist to speed up the test run and use your CPU cores:: - py.test -n3 --forked + pytest -n3 --forked this would run 3 testing subprocesses in parallel which each create new forked subprocesses for each test. + You can also fork for individual tests:: + + @pytest.mark.forked + def test_with_leaky_state(): + run_some_monkey_patches() + + + This test will be unconditionally boxed, regardless of CLI flag. + + .. _`pytest-forked repository`: https://github.com/pytest-dev/pytest-forked + Platform: linux Platform: osx Classifier: Development Status :: 7 - Inactive @@ -67,4 +81,10 @@ Classifier: Topic :: Utilities Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2 +Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.4 +Classifier: Programming Language :: Python :: 3.5 +Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 +Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-0.2/README.rst new/pytest-forked-1.1.3/README.rst --- old/pytest-forked-0.2/README.rst 2017-08-04 20:55:11.000000000 +0200 +++ new/pytest-forked-1.1.3/README.rst 2019-10-22 18:12:49.000000000 +0200 @@ -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 @@ -32,17 +35,27 @@ with tests crashing the process. For this case you may use the boxing options:: - py.test --forked + pytest --forked which will run each test in a subprocess and will report if a test crashed the process. You can also combine this option with running multiple processes via pytest-xdist to speed up the test run and use your CPU cores:: - py.test -n3 --forked + pytest -n3 --forked this would run 3 testing subprocesses in parallel which each create new forked subprocesses for each test. -.. _`pytest-forked repository`: https://github.com/pytest-dev/pytest-forked \ No newline at end of file +You can also fork for individual tests:: + + @pytest.mark.forked + def test_with_leaky_state(): + run_some_monkey_patches() + + +This test will be unconditionally boxed, regardless of CLI flag. + + +.. _`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/example/boxed.txt new/pytest-forked-1.1.3/example/boxed.txt --- old/pytest-forked-0.2/example/boxed.txt 2017-08-04 20:26:08.000000000 +0200 +++ new/pytest-forked-1.1.3/example/boxed.txt 2019-10-22 18:12:49.000000000 +0200 @@ -19,7 +19,7 @@ If you run this with:: - $ py.test --forked + $ pytest --forked =========================== test session starts ============================ platform linux2 -- Python 2.7.3 -- pytest-2.3.0.dev8 plugins: xdist, bugzilla, cache, oejskit, cli, pep8, cov @@ -40,7 +40,7 @@ by lower-case ``f`` and the respective failure summary. You can also use the xdist-provided parallelization feature to speed up your testing:: - $ py.test --forked -n3 + $ pytest --forked -n3 =========================== test session starts ============================ platform linux2 -- Python 2.7.3 -- pytest-2.3.0.dev8 plugins: xdist, bugzilla, cache, oejskit, cli, pep8, cov diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-0.2/pyproject.toml new/pytest-forked-1.1.3/pyproject.toml --- old/pytest-forked-0.2/pyproject.toml 1970-01-01 01:00:00.000000000 +0100 +++ new/pytest-forked-1.1.3/pyproject.toml 2019-10-22 18:12:49.000000000 +0200 @@ -0,0 +1,3 @@ +[build-system] +requires = ['setuptools ~= 41.4', 'setuptools_scm ~= 3.3', 'wheel ~= 0.33.6'] +build-backend = 'setuptools.build_meta' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-0.2/setup.py new/pytest-forked-1.1.3/setup.py --- old/pytest-forked-0.2/setup.py 2017-08-04 20:28:18.000000000 +0200 +++ new/pytest-forked-1.1.3/setup.py 2019-10-22 18:12:49.000000000 +0200 @@ -18,8 +18,9 @@ ], }, zip_safe=False, - install_requires=['pytest>=2.6.0'], + install_requires=['pytest>=3.1.0'], setup_requires=['setuptools_scm'], + python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', classifiers=[ 'Development Status :: 7 - Inactive', 'Framework :: Pytest', @@ -32,6 +33,11 @@ 'Topic :: Utilities', 'Programming Language :: Python', 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', ], ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-0.2/src/pytest_forked/__init__.py new/pytest-forked-1.1.3/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.1.3/src/pytest_forked/__init__.py 2019-10-22 18:12:49.000000000 +0200 @@ -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 @@ -29,9 +29,16 @@ help="box each test run in a separate process (unix)") +def pytest_load_initial_conftests(early_config, parser, args): + early_config.addinivalue_line( + "markers", + "forked: Always fork for this test.", + ) + + @pytest.mark.tryfirst def pytest_runtest_protocol(item): - if item.config.getvalue("forked"): + if item.config.getvalue("forked") or item.get_closest_marker("forked"): reports = forked_run_report(item) for rep in reports: item.ihook.pytest_runtest_logreport(report=rep) @@ -49,7 +56,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 +66,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.1.3/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.1.3/src/pytest_forked.egg-info/PKG-INFO 2019-10-22 18:13:20.000000000 +0200 @@ -1,6 +1,6 @@ -Metadata-Version: 1.1 +Metadata-Version: 1.2 Name: pytest-forked -Version: 0.2 +Version: 1.1.3 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 @@ -40,20 +43,31 @@ with tests crashing the process. For this case you may use the boxing options:: - py.test --forked + pytest --forked which will run each test in a subprocess and will report if a test crashed the process. You can also combine this option with running multiple processes via pytest-xdist to speed up the test run and use your CPU cores:: - py.test -n3 --forked + pytest -n3 --forked this would run 3 testing subprocesses in parallel which each create new forked subprocesses for each test. + You can also fork for individual tests:: + + @pytest.mark.forked + def test_with_leaky_state(): + run_some_monkey_patches() + + + This test will be unconditionally boxed, regardless of CLI flag. + + .. _`pytest-forked repository`: https://github.com/pytest-dev/pytest-forked + Platform: linux Platform: osx Classifier: Development Status :: 7 - Inactive @@ -67,4 +81,10 @@ Classifier: Topic :: Utilities Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2 +Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.4 +Classifier: Programming Language :: Python :: 3.5 +Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 +Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* 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.1.3/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.1.3/src/pytest_forked.egg-info/SOURCES.txt 2019-10-22 18:13:20.000000000 +0200 @@ -5,6 +5,7 @@ MANIFEST.in README.rst appveyor.yml +pyproject.toml setup.cfg setup.py tox.ini @@ -18,13 +19,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.1.3/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.1.3/src/pytest_forked.egg-info/requires.txt 2019-10-22 18:13:20.000000000 +0200 @@ -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.1.3/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.1.3/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.1.3/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.1.3/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.1.3/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.1.3/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.1.3/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.1.3/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.1.3/testing/conftest.py --- old/pytest-forked-0.2/testing/conftest.py 2016-10-11 21:22:44.000000000 +0200 +++ new/pytest-forked-1.1.3/testing/conftest.py 2019-10-22 18:12:49.000000000 +0200 @@ -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.1.3/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.1.3/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.1.3/testing/test_boxed.py 2019-10-22 18:12:49.000000000 +0200 @@ -20,10 +20,27 @@ @needsfork +def test_functional_boxed_per_test(testdir): + p1 = testdir.makepyfile(""" + import os + import pytest + + @pytest.mark.forked + def test_function(): + os.kill(os.getpid(), 15) + """) + result = testdir.runpytest(p1) + result.stdout.fnmatch_lines([ + "*CRASHED*", + "*1 failed*" + ]) + + +@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.1.3/tox.ini --- old/pytest-forked-0.2/tox.ini 2017-07-28 16:26:36.000000000 +0200 +++ new/pytest-forked-1.1.3/tox.ini 2019-10-22 18:12:49.000000000 +0200 @@ -1,22 +1,23 @@ [tox] # if you change the envlist, please update .travis.yml file as well +minversion = 3.7.0 +isolated_build = true 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} + pytest {posargs} [testenv:flakes] changedir= @@ -29,7 +30,8 @@ skip_install = true commands = python setup.py check -r -s - [pytest] addopts = -rsfxX -;; hello + +[flake8] +max-line-length = 88