@@ -5,6 +5,44 @@ Release history
55
66.. towncrier release notes start
77
8+ pytest-trio 0.8.0 (2022-11-01)
9+ ------------------------------
10+
11+ Features
12+ ~~~~~~~~
13+
14+ - If a test raises an ``ExceptionGroup `` (or nested ``ExceptionGroup ``\ s) with only
15+ a single 'leaf' exception from ``pytest.xfail() `` or ``pytest.skip() ``\ , we now
16+ unwrap it to have the desired effect on Pytest. ``ExceptionGroup ``\ s with two or
17+ more leaf exceptions, even of the same type, are not changed and will be treated
18+ as ordinary test failures.
19+
20+ See `pytest-dev/pytest#9680 <https://github.com/pytest-dev/pytest/issues/9680 >`__
21+ for design discussion. This feature is particularly useful if you've enabled
22+ `the new strict_exception_groups=True option
23+ <https://trio.readthedocs.io/en/stable/reference-core.html#strict-versus-loose-exceptiongroup-semantics> `__. (`#104 <https://github.com/python-trio/pytest-trio/issues/104 >`__)
24+
25+
26+ Bugfixes
27+ ~~~~~~~~
28+
29+ - Fix an issue where if two fixtures are being set up concurrently, and
30+ one crashes and the other hangs, then the test as a whole would hang,
31+ rather than being cancelled and unwound after the crash. (`#120 <https://github.com/python-trio/pytest-trio/issues/120 >`__)
32+
33+
34+ Misc
35+ ~~~~
36+
37+ - Trio 0.22.0 deprecated ``MultiError `` in favor of the standard-library
38+ (or `backported <https://pypi.org/project/exceptiongroup/ >`__) ``ExceptionGroup ``
39+ type; ``pytest-trio `` now uses ``ExceptionGroup `` exclusively and therefore requires
40+ Trio 0.22.0 or later. (`#128 <https://github.com/python-trio/pytest-trio/issues/128 >`__)
41+
42+ - Dropped support for end-of-life Python 3.6, and the ``async_generator `` library
43+ necessary to support it, and started testing on Python 3.10 and 3.11. (`#129 <https://github.com/python-trio/pytest-trio/issues/129 >`__)
44+
45+
846pytest-trio 0.7.0 (2020-10-15)
947------------------------------
1048
0 commit comments