Skip to content

Commit

Permalink
Bump version to 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin committed Nov 1, 2022
1 parent 2ba99e6 commit 250ec45
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 20 deletions.
38 changes: 38 additions & 0 deletions docs/source/history.rst
Expand Up @@ -5,6 +5,44 @@ Release history

.. towncrier release notes start
pytest-trio 0.8.0 (2022-11-01)
------------------------------

Features
~~~~~~~~

- If a test raises an ``ExceptionGroup`` (or nested ``ExceptionGroup``\ s) with only
a single 'leaf' exception from ``pytest.xfail()`` or ``pytest.skip()``\ , we now
unwrap it to have the desired effect on Pytest. ``ExceptionGroup``\ s with two or
more leaf exceptions, even of the same type, are not changed and will be treated
as ordinary test failures.

See `pytest-dev/pytest#9680 <https://github.com/pytest-dev/pytest/issues/9680>`__
for design discussion. This feature is particularly useful if you've enabled
`the new strict_exception_groups=True option
<https://trio.readthedocs.io/en/stable/reference-core.html#strict-versus-loose-exceptiongroup-semantics>`__. (`#104 <https://github.com/python-trio/pytest-trio/issues/104>`__)


Bugfixes
~~~~~~~~

- Fix an issue where if two fixtures are being set up concurrently, and
one crashes and the other hangs, then the test as a whole would hang,
rather than being cancelled and unwound after the crash. (`#120 <https://github.com/python-trio/pytest-trio/issues/120>`__)


Misc
~~~~

- Trio 0.22.0 deprecated ``MultiError`` in favor of the standard-library
(or `backported <https://pypi.org/project/exceptiongroup/>`__) ``ExceptionGroup``
type; ``pytest-trio`` now uses ``ExceptionGroup`` exclusively and therefore requires
Trio 0.22.0 or later. (`#128 <https://github.com/python-trio/pytest-trio/issues/128>`__)

- Dropped support for end-of-life Python 3.6, and the ``async_generator`` library
necessary to support it, and started testing on Python 3.10 and 3.11. (`#129 <https://github.com/python-trio/pytest-trio/issues/129>`__)


pytest-trio 0.7.0 (2020-10-15)
------------------------------

Expand Down
10 changes: 0 additions & 10 deletions newsfragments/104.feature.rst

This file was deleted.

3 changes: 0 additions & 3 deletions newsfragments/120.bugfix.rst

This file was deleted.

4 changes: 0 additions & 4 deletions newsfragments/128.misc.rst

This file was deleted.

2 changes: 0 additions & 2 deletions newsfragments/129.misc.rst

This file was deleted.

2 changes: 1 addition & 1 deletion pytest_trio/_version.py
@@ -1,3 +1,3 @@
# This file is imported from __init__.py and exec'd from setup.py

__version__ = "0.7.0+dev"
__version__ = "0.8.0"

0 comments on commit 250ec45

Please sign in to comment.