Skip to content

Commit

Permalink
Merge pull request #1070 from pytest-dev/release-3.6.0
Browse files Browse the repository at this point in the history
Release 3.6.0
  • Loading branch information
bluetech authored Apr 19, 2024
2 parents 20e3ac7 + 80bc0b8 commit 699f939
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 18 deletions.
44 changes: 44 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,47 @@
pytest-xdist 3.6.0 (2024-04-19)
===============================

Features
--------

- `#1027 <https://github.com/pytest-dev/pytest-xdist/pull/1027>`_:``pytest-xdist`` workers now always execute the tests in the main thread.
Previously some tests might end up executing in a separate thread other than ``main`` in the workers, due to some internal `execnet`` details. This can cause problems specially with async frameworks where the event loop is running in the ``main`` thread (for example `#620 <https://github.com/pytest-dev/pytest-xdist/issues/620>`__).

Bug Fixes
---------

- `#1024 <https://github.com/pytest-dev/pytest-xdist/issues/1024>`_: Added proper handling of ``shouldstop`` (such as set by ``--max-fail``) and ``shouldfail`` conditions in workers.
Previously, a worker might have continued executing further tests before the controller could terminate the session.

- `#1028 <https://github.com/pytest-dev/pytest-xdist/issues/1028>`_: Fixed compatibility issue between `looponfail` and editable installs.

- `#620 <https://github.com/pytest-dev/pytest-xdist/issues/620>`_: Use the new ``main_thread_only`` ``execnet`` "execmodel" so that code which expects to only run in the main thread will now work as expected.

- `#937 <https://github.com/pytest-dev/pytest-xdist/issues/937>`_: Fixed a bug where plugin would raise an incompatibility error with ``--pdb`` despite using ``-n0``.


Removals
--------

- `#1053 <https://github.com/pytest-dev/pytest-xdist/issues/1053>`_: Dropped support for Python 3.7.

- `#1057 <https://github.com/pytest-dev/pytest-xdist/issues/1057>`_: pytest>=7.0.0 is now required.

execnet>=2.1.0 is now required.


Trivial Changes
---------------

- `#1020 <https://github.com/pytest-dev/pytest-xdist/issues/1020>`_: pytest-xdist's ``setup.py`` file is removed.

If you relied on this file, e.g. to install pytest using ``setup.py install``,
please see `Why you shouldn't invoke setup.py directly <https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html#summary>`_ for alternatives.

- `#1057 <https://github.com/pytest-dev/pytest-xdist/issues/1057>`_: The internals of pytest-xdist are now fully typed. The typing is not exposed yet.

- `#996 <https://github.com/pytest-dev/pytest-xdist/issues/996>`_: Adjusted license file format and content to ensure security scanners will identity the license.

pytest-xdist 3.5.0 (2023-11-21)
===============================

Expand Down
4 changes: 0 additions & 4 deletions changelog/1020.trivial

This file was deleted.

2 changes: 0 additions & 2 deletions changelog/1024.bugfix

This file was deleted.

3 changes: 0 additions & 3 deletions changelog/1027.improvement.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/1028.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog/1053.removal

This file was deleted.

3 changes: 0 additions & 3 deletions changelog/1057.removal

This file was deleted.

1 change: 0 additions & 1 deletion changelog/1057.trivial

This file was deleted.

1 change: 0 additions & 1 deletion changelog/620.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog/937.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog/996.trivial

This file was deleted.

0 comments on commit 699f939

Please sign in to comment.