Skip to content

Commit 250ec45

Browse files
committed
Bump version to 0.8.0
1 parent 2ba99e6 commit 250ec45

File tree

6 files changed

+39
-20
lines changed

6 files changed

+39
-20
lines changed

docs/source/history.rst

+38
Original file line numberDiff line numberDiff line change
@@ -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+
846
pytest-trio 0.7.0 (2020-10-15)
947
------------------------------
1048

newsfragments/104.feature.rst

-10
This file was deleted.

newsfragments/120.bugfix.rst

-3
This file was deleted.

newsfragments/128.misc.rst

-4
This file was deleted.

newsfragments/129.misc.rst

-2
This file was deleted.

pytest_trio/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# This file is imported from __init__.py and exec'd from setup.py
22

3-
__version__ = "0.7.0+dev"
3+
__version__ = "0.8.0"

0 commit comments

Comments
 (0)