Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pytest-forked for openSUSE:Factory checked in at 2023-03-29 23:26:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pytest-forked (Old) and /work/SRC/openSUSE:Factory/.python-pytest-forked.new.31432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-forked" Wed Mar 29 23:26:22 2023 rev:8 rq:1074588 version:1.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pytest-forked/python-pytest-forked.changes 2023-01-06 17:04:55.235967370 +0100 +++ /work/SRC/openSUSE:Factory/.python-pytest-forked.new.31432/python-pytest-forked.changes 2023-03-29 23:26:31.647266749 +0200 @@ -1,0 +2,9 @@ +Mon Mar 27 07:30:54 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 1.6.0: + * Relaxed dependency requirements (`#77 + <https://github.com/pytest-dev/pytest-forked/issues/77>`__). + * Dropped support for Python 3.6. + * Added official support for Python 3.11. + +------------------------------------------------------------------- Old: ---- pytest-forked-1.4.0.tar.gz New: ---- pytest-forked-1.6.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pytest-forked.spec ++++++ --- /var/tmp/diff_new_pack.GrxWUR/_old 2023-03-29 23:26:32.287269756 +0200 +++ /var/tmp/diff_new_pack.GrxWUR/_new 2023-03-29 23:26:32.291269776 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pytest-forked # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-pytest-forked -Version: 1.4.0 +Version: 1.6.0 Release: 0 Summary: Run each test in a forked subprocess License: MIT ++++++ pytest-forked-1.4.0.tar.gz -> pytest-forked-1.6.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.4.0/.github/workflows/deploy.yml new/pytest-forked-1.6.0/.github/workflows/deploy.yml --- old/pytest-forked-1.4.0/.github/workflows/deploy.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/pytest-forked-1.6.0/.github/workflows/deploy.yml 2023-02-13 00:21:53.000000000 +0100 @@ -0,0 +1,27 @@ +name: deploy + +on: + push: + tags: + - "v*" + +jobs: + + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build and Check Package + uses: hynek/build-and-inspect-python-package@v1.5 + - name: Download Package + uses: actions/download-artifact@v3 + with: + name: Packages + path: dist + - name: Publish package to PyPI + uses: pypa/gh-action-pypi-publish@master + with: + user: __token__ + password: ${{ secrets.pypi_token }} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.4.0/.github/workflows/main.yml new/pytest-forked-1.6.0/.github/workflows/main.yml --- old/pytest-forked-1.4.0/.github/workflows/main.yml 2021-12-10 16:43:01.000000000 +0100 +++ new/pytest-forked-1.6.0/.github/workflows/main.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,65 +0,0 @@ -name: build - -on: [push, pull_request] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: - python: ["3.6", "3.7", "3.8", "3.9", "3.10"] - include: - - python: "3.6" - tox_env: "py36" - - python: "3.7" - tox_env: "py37" - - python: "3.8" - tox_env: "py38" - - python: "3.9" - tox_env: "py39" - - python: "3.10" - tox_env: "py310" - - steps: - - uses: actions/checkout@v1 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python }} - - name: Install tox - run: | - python -m pip install --upgrade pip - pip install tox - - name: Test - run: | - tox -e ${{ matrix.tox_env }} - - deploy: - - if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') - - runs-on: ubuntu-latest - - needs: build - - steps: - - uses: actions/checkout@v1 - - name: Set up Python - uses: actions/setup-python@v1 - with: - python-version: "3.9" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install build - - name: Build package - run: | - python -m build - - name: Publish package to PyPI - uses: pypa/gh-action-pypi-publish@master - with: - user: __token__ - password: ${{ secrets.pypi_token }} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.4.0/.github/workflows/test.yml new/pytest-forked-1.6.0/.github/workflows/test.yml --- old/pytest-forked-1.4.0/.github/workflows/test.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/pytest-forked-1.6.0/.github/workflows/test.yml 2023-02-13 00:21:53.000000000 +0100 @@ -0,0 +1,45 @@ +name: test + +on: [push, pull_request] + +jobs: + test: + + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + python: ["3.7", "3.8", "3.9", "3.10", "3.11"] + include: + - python: "3.7" + tox_env: "py37" + - python: "3.8" + tox_env: "py38" + - python: "3.9" + tox_env: "py39" + - python: "3.10" + tox_env: "py310" + - python: "3.11" + tox_env: "py311" + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - name: Install tox + run: | + python -m pip install --upgrade pip + pip install tox + - name: Test + run: | + tox -e ${{ matrix.tox_env }} + + check-package: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Build and Check Package + uses: hynek/build-and-inspect-python-package@v1.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.4.0/.pre-commit-config.yaml new/pytest-forked-1.6.0/.pre-commit-config.yaml --- old/pytest-forked-1.4.0/.pre-commit-config.yaml 2021-12-10 16:43:01.000000000 +0100 +++ new/pytest-forked-1.6.0/.pre-commit-config.yaml 2023-02-13 00:21:53.000000000 +0100 @@ -1,16 +1,16 @@ repos: - repo: https://github.com/asottile/pyupgrade - rev: v2.29.1 + rev: v2.32.1 hooks: - id: pyupgrade args: [--py36-plus] - repo: https://github.com/psf/black - rev: 21.9b0 + rev: 22.3.0 hooks: - id: black args: [--safe, --quiet] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.0.1 + rev: v4.2.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -23,7 +23,7 @@ language: python additional_dependencies: [pygments, restructuredtext_lint] - repo: https://github.com/asottile/reorder_python_imports - rev: v2.6.0 + rev: v3.1.0 hooks: - id: reorder-python-imports args: ['--application-directories=.:src'] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.4.0/CHANGELOG.rst new/pytest-forked-1.6.0/CHANGELOG.rst --- old/pytest-forked-1.4.0/CHANGELOG.rst 2021-12-10 16:43:01.000000000 +0100 +++ new/pytest-forked-1.6.0/CHANGELOG.rst 2023-02-13 00:21:53.000000000 +0100 @@ -1,3 +1,14 @@ +v1.6.0 +====== + +* Relaxed dependency requirements (`#77 <https://github.com/pytest-dev/pytest-forked/issues/77>`__). + +v1.5.0 +====== + +* Dropped support for Python 3.6. +* Added official support for Python 3.11. + v1.4.0 ====== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.4.0/PKG-INFO new/pytest-forked-1.6.0/PKG-INFO --- old/pytest-forked-1.4.0/PKG-INFO 2021-12-10 16:43:10.957741500 +0100 +++ new/pytest-forked-1.6.0/PKG-INFO 2023-02-13 00:22:13.899840000 +0100 @@ -1,89 +1,11 @@ Metadata-Version: 2.1 Name: pytest-forked -Version: 1.4.0 +Version: 1.6.0 Summary: run tests in isolated forked subprocesses Home-page: https://github.com/pytest-dev/pytest-forked Author: pytest-dev Author-email: pytest-...@python.org License: MIT -Description: pytest-forked: run each test in a forked subprocess - ==================================================== - - - .. warning:: - - this is a extraction of the xdist --forked module, - future maintenance beyond the bare minimum is not planned until a new maintainer is found. - - - 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. - - |python| |version| |ci| |pre-commit| |black| - - .. |version| image:: http://img.shields.io/pypi/v/pytest-forked.svg - :target: https://pypi.python.org/pypi/pytest-forked - - .. |ci| image:: https://github.com/pytest-dev/pytest-forked/workflows/build/badge.svg - :target: https://github.com/pytest-dev/pytest-forked/actions - - .. |python| image:: https://img.shields.io/pypi/pyversions/pytest-forked.svg - :target: https://pypi.python.org/pypi/pytest-forked/ - - .. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg - :target: https://github.com/ambv/black - - .. |pre-commit| image:: https://results.pre-commit.ci/badge/github/pytest-dev/pytest-forked/master.svg - :target: https://results.pre-commit.ci/latest/github/pytest-dev/pytest-forked/master - - Installation - ----------------------- - - Install the plugin with:: - - pip install pytest-forked - - or use the package in develope/in-place mode with - a checkout of the `pytest-forked repository`_ :: - - pip install -e . - - - Usage examples - --------------------- - - If you have tests involving C or C++ libraries you might have to deal - with tests crashing the process. For this case you may use the boxing - options:: - - 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:: - - 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 @@ -97,11 +19,90 @@ Classifier: Topic :: Utilities Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: 3 :: Only -Requires-Python: >=3.6 +Requires-Python: >=3.7 Description-Content-Type: text/x-rst +License-File: LICENSE + +pytest-forked: run each test in a forked subprocess +==================================================== + + +.. warning:: + + this is a extraction of the xdist --forked module, + future maintenance beyond the bare minimum is not planned until a new maintainer is found. + + +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. + +|python| |version| |ci| |pre-commit| |black| + +.. |version| image:: http://img.shields.io/pypi/v/pytest-forked.svg + :target: https://pypi.python.org/pypi/pytest-forked + +.. |ci| image:: https://github.com/pytest-dev/pytest-forked/workflows/build/badge.svg + :target: https://github.com/pytest-dev/pytest-forked/actions + +.. |python| image:: https://img.shields.io/pypi/pyversions/pytest-forked.svg + :target: https://pypi.python.org/pypi/pytest-forked/ + +.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg + :target: https://github.com/ambv/black + +.. |pre-commit| image:: https://results.pre-commit.ci/badge/github/pytest-dev/pytest-forked/master.svg + :target: https://results.pre-commit.ci/latest/github/pytest-dev/pytest-forked/master + +Installation +----------------------- + +Install the plugin with:: + + pip install pytest-forked + +or use the package in develope/in-place mode with +a checkout of the `pytest-forked repository`_ :: + + pip install -e . + + +Usage examples +--------------------- + +If you have tests involving C or C++ libraries you might have to deal +with tests crashing the process. For this case you may use the boxing +options:: + + 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:: + + 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 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.4.0/pyproject.toml new/pytest-forked-1.6.0/pyproject.toml --- old/pytest-forked-1.4.0/pyproject.toml 2021-12-10 16:43:01.000000000 +0100 +++ new/pytest-forked-1.6.0/pyproject.toml 2023-02-13 00:21:53.000000000 +0100 @@ -1,3 +1,3 @@ [build-system] -requires = ['setuptools ~= 41.4', 'setuptools_scm ~= 3.3', 'wheel ~= 0.33.6'] +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-1.4.0/setup.py new/pytest-forked-1.6.0/setup.py --- old/pytest-forked-1.4.0/setup.py 2021-12-10 16:43:01.000000000 +0100 +++ new/pytest-forked-1.6.0/setup.py 2023-02-13 00:21:53.000000000 +0100 @@ -21,7 +21,7 @@ zip_safe=False, install_requires=["py", "pytest>=3.10"], setup_requires=["setuptools_scm"], - python_requires=">=3.6", + python_requires=">=3.7", classifiers=[ "Development Status :: 7 - Inactive", "Framework :: Pytest", @@ -34,11 +34,11 @@ "Topic :: Utilities", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3 :: Only", ], ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.4.0/src/pytest_forked.egg-info/PKG-INFO new/pytest-forked-1.6.0/src/pytest_forked.egg-info/PKG-INFO --- old/pytest-forked-1.4.0/src/pytest_forked.egg-info/PKG-INFO 2021-12-10 16:43:10.000000000 +0100 +++ new/pytest-forked-1.6.0/src/pytest_forked.egg-info/PKG-INFO 2023-02-13 00:22:13.000000000 +0100 @@ -1,89 +1,11 @@ Metadata-Version: 2.1 Name: pytest-forked -Version: 1.4.0 +Version: 1.6.0 Summary: run tests in isolated forked subprocesses Home-page: https://github.com/pytest-dev/pytest-forked Author: pytest-dev Author-email: pytest-...@python.org License: MIT -Description: pytest-forked: run each test in a forked subprocess - ==================================================== - - - .. warning:: - - this is a extraction of the xdist --forked module, - future maintenance beyond the bare minimum is not planned until a new maintainer is found. - - - 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. - - |python| |version| |ci| |pre-commit| |black| - - .. |version| image:: http://img.shields.io/pypi/v/pytest-forked.svg - :target: https://pypi.python.org/pypi/pytest-forked - - .. |ci| image:: https://github.com/pytest-dev/pytest-forked/workflows/build/badge.svg - :target: https://github.com/pytest-dev/pytest-forked/actions - - .. |python| image:: https://img.shields.io/pypi/pyversions/pytest-forked.svg - :target: https://pypi.python.org/pypi/pytest-forked/ - - .. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg - :target: https://github.com/ambv/black - - .. |pre-commit| image:: https://results.pre-commit.ci/badge/github/pytest-dev/pytest-forked/master.svg - :target: https://results.pre-commit.ci/latest/github/pytest-dev/pytest-forked/master - - Installation - ----------------------- - - Install the plugin with:: - - pip install pytest-forked - - or use the package in develope/in-place mode with - a checkout of the `pytest-forked repository`_ :: - - pip install -e . - - - Usage examples - --------------------- - - If you have tests involving C or C++ libraries you might have to deal - with tests crashing the process. For this case you may use the boxing - options:: - - 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:: - - 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 @@ -97,11 +19,90 @@ Classifier: Topic :: Utilities Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: 3 :: Only -Requires-Python: >=3.6 +Requires-Python: >=3.7 Description-Content-Type: text/x-rst +License-File: LICENSE + +pytest-forked: run each test in a forked subprocess +==================================================== + + +.. warning:: + + this is a extraction of the xdist --forked module, + future maintenance beyond the bare minimum is not planned until a new maintainer is found. + + +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. + +|python| |version| |ci| |pre-commit| |black| + +.. |version| image:: http://img.shields.io/pypi/v/pytest-forked.svg + :target: https://pypi.python.org/pypi/pytest-forked + +.. |ci| image:: https://github.com/pytest-dev/pytest-forked/workflows/build/badge.svg + :target: https://github.com/pytest-dev/pytest-forked/actions + +.. |python| image:: https://img.shields.io/pypi/pyversions/pytest-forked.svg + :target: https://pypi.python.org/pypi/pytest-forked/ + +.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg + :target: https://github.com/ambv/black + +.. |pre-commit| image:: https://results.pre-commit.ci/badge/github/pytest-dev/pytest-forked/master.svg + :target: https://results.pre-commit.ci/latest/github/pytest-dev/pytest-forked/master + +Installation +----------------------- + +Install the plugin with:: + + pip install pytest-forked + +or use the package in develope/in-place mode with +a checkout of the `pytest-forked repository`_ :: + + pip install -e . + + +Usage examples +--------------------- + +If you have tests involving C or C++ libraries you might have to deal +with tests crashing the process. For this case you may use the boxing +options:: + + 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:: + + 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 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.4.0/src/pytest_forked.egg-info/SOURCES.txt new/pytest-forked-1.6.0/src/pytest_forked.egg-info/SOURCES.txt --- old/pytest-forked-1.4.0/src/pytest_forked.egg-info/SOURCES.txt 2021-12-10 16:43:10.000000000 +0100 +++ new/pytest-forked-1.6.0/src/pytest_forked.egg-info/SOURCES.txt 2023-02-13 00:22:13.000000000 +0100 @@ -7,7 +7,8 @@ pyproject.toml setup.py tox.ini -.github/workflows/main.yml +.github/workflows/deploy.yml +.github/workflows/test.yml example/boxed.txt src/pytest_forked/__init__.py src/pytest_forked.egg-info/PKG-INFO diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.4.0/src/pytest_forked.egg-info/entry_points.txt new/pytest-forked-1.6.0/src/pytest_forked.egg-info/entry_points.txt --- old/pytest-forked-1.4.0/src/pytest_forked.egg-info/entry_points.txt 2021-12-10 16:43:10.000000000 +0100 +++ new/pytest-forked-1.6.0/src/pytest_forked.egg-info/entry_points.txt 2023-02-13 00:22:13.000000000 +0100 @@ -1,3 +1,2 @@ [pytest11] pytest_forked = pytest_forked - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.4.0/testing/test_xfail_behavior.py new/pytest-forked-1.6.0/testing/test_xfail_behavior.py --- old/pytest-forked-1.4.0/testing/test_xfail_behavior.py 2021-12-10 16:43:01.000000000 +0100 +++ new/pytest-forked-1.6.0/testing/test_xfail_behavior.py 2023-02-13 00:21:53.000000000 +0100 @@ -6,6 +6,7 @@ IS_PYTEST4_PLUS = int(pytest.__version__[0]) >= 4 # noqa: WPS609 FAILED_WORD = "FAILED" if IS_PYTEST4_PLUS else "FAIL" +PYTEST_GTE_7_2 = hasattr(pytest, "version_tuple") and pytest.version_tuple >= (7, 2) # type: ignore[attr-defined] pytestmark = pytest.mark.skipif( # pylint: disable=invalid-name not hasattr(os, "fork"), # noqa: WPS421 @@ -50,14 +51,12 @@ session_start_title = "*==== test session starts ====*" loaded_pytest_plugins = "plugins: forked*" collected_tests_num = "collected 1 item" - expected_progress = "test_xfail.py {expected_letter!s}*".format(**locals()) + expected_progress = f"test_xfail.py {expected_letter!s}*" failures_title = "*==== FAILURES ====*" failures_test_name = "*____ test_function ____*" failures_test_reason = "[XPASS(strict)] The process gets terminated" short_test_summary_title = "*==== short test summary info ====*" - short_test_summary = "{expected_word!s} test_xfail.py::test_function".format( - **locals() - ) + short_test_summary = f"{expected_word!s} test_xfail.py::test_function" if expected_lowercase == "xpassed": # XPASS wouldn't have the crash message from # pytest-forked because the crash doesn't happen @@ -68,13 +67,13 @@ ) ) reason_string = ( - " reason: The process gets terminated; " - "pytest-forked reason: " - "*:*: running the test CRASHED with signal {sig_num:d}".format(**locals()) - ) - total_summary_line = "*==== 1 {expected_lowercase!s} in 0.*s* ====*".format( - **locals() - ) + f"reason: The process gets terminated; " + f"pytest-forked reason: " + f"*:*: running the test CRASHED with signal {sig_num:d}" + ) + if expected_lowercase == "xfailed" and PYTEST_GTE_7_2: + short_test_summary += " - " + reason_string + total_summary_line = f"*==== 1 {expected_lowercase!s} in 0.*s* ====*" expected_lines = ( session_start_title, @@ -95,7 +94,7 @@ ) if expected_lowercase == "xpassed" and expected_word == FAILED_WORD: # XPASS(strict) - expected_lines += (reason_string,) + expected_lines += (" " + reason_string,) expected_lines += (total_summary_line,) test_module = testdir.makepyfile( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.4.0/tox.ini new/pytest-forked-1.6.0/tox.ini --- old/pytest-forked-1.4.0/tox.ini 2021-12-10 16:43:01.000000000 +0100 +++ new/pytest-forked-1.6.0/tox.ini 2023-02-13 00:21:53.000000000 +0100 @@ -3,7 +3,7 @@ minversion = 3.7.0 isolated_build = true envlist= - py{36,37,38,39,310}-pytest{310,46,54,62,latest} + py{37,38,39,310,311}-pytest{310,46,54,62,latest} flakes build-dists metadata-validation