Skip to content

community/py3-pytest-xdist: upgrade to 2.5.0

I think patch for tests is no longer required so it was excluded. Almost all the tests are passing, only few optional XFAILEDs left. (hoo!) No critical tests failed, so we're close enough.

https://github.com/pytest-dev/pytest-xdist/blob/v2.5.0/CHANGELOG.rst#pytest-xdist-250-2021-12-10

pytest-xdist 2.5.0 (2021-12-10)

Features

  • #722 <https://github.com/pytest-dev/pytest-xdist/issues/722>_: Full compatibility with pytest 7 - no deprecation warnings or use of legacy features.

  • #733 <https://github.com/pytest-dev/pytest-xdist/issues/733>_: New --dist=loadgroup option, which ensures all tests marked with @pytest.mark.xdist_group run in the same session/worker. Other tests run distributed as in --dist=load.

Trivial Changes

  • #708 <https://github.com/pytest-dev/pytest-xdist/issues/708>_: Use @pytest.hookspec decorator to declare hook options in newhooks.py to avoid warnings in pytest 7.0.

  • #719 <https://github.com/pytest-dev/pytest-xdist/issues/719>_: Use up-to-date setup.cfg/pyproject.toml packaging setup.

  • #720 <https://github.com/pytest-dev/pytest-xdist/issues/720>_: Require pytest>=6.2.0.

  • #721 <https://github.com/pytest-dev/pytest-xdist/issues/721>_: Started using type annotations and mypy checking internally. The types are incomplete and not published.

pytest-xdist 2.4.0 (2021-09-20)

Features

  • #696 <https://github.com/pytest-dev/pytest-xdist/issues/696>_: On Linux, the process title now changes to indicate the current worker state (running/idle).

    Depends on the setproctitle <https://pypi.org/project/setproctitle/>__ package, which can be installed with pip install pytest-xdist[setproctitle].

  • #704 <https://github.com/pytest-dev/pytest-xdist/issues/704>_: Add support for Python 3.10.

pytest-xdist 2.3.0 (2021-06-16)

Deprecations and Removals

  • #654 <https://github.com/pytest-dev/pytest-xdist/issues/654>_: Python 3.5 is no longer supported.

Features

  • #646 <https://github.com/pytest-dev/pytest-xdist/issues/646>_: Add --numprocesses=logical flag, which automatically uses the number of logical CPUs available, instead of physical CPUs with auto.

    This is very useful for test suites which are not CPU-bound.

  • #650 <https://github.com/pytest-dev/pytest-xdist/issues/650>_: Added new pytest_handlecrashitem hook to allow handling and rescheduling crashed items.

Bug Fixes

  • #421 <https://github.com/pytest-dev/pytest-xdist/issues/421>_: Copy the parent process sys.path into local workers, to work around execnet's python -c adding the current directory to sys.path.

  • #638 <https://github.com/pytest-dev/pytest-xdist/issues/638>_: Fix issue caused by changing the branch name of the pytest repository.

Trivial Changes

  • #592 <https://github.com/pytest-dev/pytest-xdist/issues/592>_: Replace master with controller where ever possible.

  • #643 <https://github.com/pytest-dev/pytest-xdist/issues/643>_: Use 'main' to refer to pytest default branch in tox env names.

pytest-xdist 2.2.1 (2021-02-09)

Bug Fixes

  • #623 <https://github.com/pytest-dev/pytest-xdist/issues/623>_: Gracefully handle the pending deprecation of Node.fspath by using config.rootpath for topdir.

pytest-xdist 2.2.0 (2020-12-14)

Features

  • #608 <https://github.com/pytest-dev/pytest-xdist/issues/608>_: Internal errors in workers are now propagated to the master node.

pytest-xdist 2.1.0 (2020-08-25)

Features

  • #585 <https://github.com/pytest-dev/pytest-xdist/issues/585>_: New pytest_xdist_auto_num_workers hook can be implemented by plugins or conftest.py files to control the number of workers when --numprocesses=auto is given in the command-line.

Trivial Changes

  • #585 <https://github.com/pytest-dev/pytest-xdist/issues/585>_: psutil has proven to make pytest-xdist installation in certain platforms and containers problematic, so to use it for automatic number of CPUs detection users need to install the psutil extra::

    pip install pytest-xdist[psutil]

pytest-xdist 2.0.0 (2020-08-12)

Deprecations and Removals

  • #541 <https://github.com/pytest-dev/pytest-xdist/issues/541>_: Drop backward-compatibility "slave" aliases related to worker nodes. We deliberately moved away from this terminology years ago, and it seems like the right time to finish the deprecation and removal process.

  • #569 <https://github.com/pytest-dev/pytest-xdist/issues/569>_: pytest-xdist no longer supports Python 2.7.

Features

  • #504 <https://github.com/pytest-dev/pytest-xdist/issues/504>_: New functions xdist.is_xdist_worker, xdist.is_xdist_master, xdist.get_xdist_worker_id, to easily identify the current node.

Bug Fixes

  • #471 <https://github.com/pytest-dev/pytest-xdist/issues/471>_: Fix issue with Rsync reporting in quiet mode.

  • #553 <https://github.com/pytest-dev/pytest-xdist/issues/553>_: When using -n auto, count the number of physical CPU cores instead of logical ones.

Trivial Changes

  • #541 <https://github.com/pytest-dev/pytest-xdist/issues/541>_: pytest-xdist now requires pytest>=6.0.

pytest-xdist 1.34.0 (2020-07-27)

Features

  • #549 <https://github.com/pytest-dev/pytest-xdist/issues/549>_: Make --pdb imply --dist no, as the two options cannot really work together at the moment.

Bug Fixes

  • #478 <https://github.com/pytest-dev/pytest-xdist/issues/478>_: Fix regression with duplicated arguments via $PYTEST_ADDOPTS in 1.30.0.

  • #558 <https://github.com/pytest-dev/pytest-xdist/issues/558>_: Fix rsyncdirs usage with pytest 6.0.

  • #562 <https://github.com/pytest-dev/pytest-xdist/issues/562>_: Do not trigger the deprecated pytest_warning_captured in pytest 6.0+.

Merge request reports