From 250ec45f5d72eca78ab0ea2d1571667d2c51f8b5 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Tue, 1 Nov 2022 21:13:47 +0400 Subject: [PATCH] Bump version to 0.8.0 --- docs/source/history.rst | 38 +++++++++++++++++++++++++++++++++++ newsfragments/104.feature.rst | 10 --------- newsfragments/120.bugfix.rst | 3 --- newsfragments/128.misc.rst | 4 ---- newsfragments/129.misc.rst | 2 -- pytest_trio/_version.py | 2 +- 6 files changed, 39 insertions(+), 20 deletions(-) delete mode 100644 newsfragments/104.feature.rst delete mode 100644 newsfragments/120.bugfix.rst delete mode 100644 newsfragments/128.misc.rst delete mode 100644 newsfragments/129.misc.rst diff --git a/docs/source/history.rst b/docs/source/history.rst index 9ef63e5..c02178a 100644 --- a/docs/source/history.rst +++ b/docs/source/history.rst @@ -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 `__ + for design discussion. This feature is particularly useful if you've enabled + `the new strict_exception_groups=True option + `__. (`#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 `__) + + +Misc +~~~~ + +- Trio 0.22.0 deprecated ``MultiError`` in favor of the standard-library + (or `backported `__) ``ExceptionGroup`` + type; ``pytest-trio`` now uses ``ExceptionGroup`` exclusively and therefore requires + Trio 0.22.0 or later. (`#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 `__) + + pytest-trio 0.7.0 (2020-10-15) ------------------------------ diff --git a/newsfragments/104.feature.rst b/newsfragments/104.feature.rst deleted file mode 100644 index 19e9f2f..0000000 --- a/newsfragments/104.feature.rst +++ /dev/null @@ -1,10 +0,0 @@ -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 `__ -for design discussion. This feature is particularly useful if you've enabled -`the new strict_exception_groups=True option -`__. diff --git a/newsfragments/120.bugfix.rst b/newsfragments/120.bugfix.rst deleted file mode 100644 index cd60b41..0000000 --- a/newsfragments/120.bugfix.rst +++ /dev/null @@ -1,3 +0,0 @@ -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. diff --git a/newsfragments/128.misc.rst b/newsfragments/128.misc.rst deleted file mode 100644 index dacb961..0000000 --- a/newsfragments/128.misc.rst +++ /dev/null @@ -1,4 +0,0 @@ -Trio 0.22.0 deprecated ``MultiError`` in favor of the standard-library -(or `backported `__) ``ExceptionGroup`` -type; ``pytest-trio`` now uses ``ExceptionGroup`` and therefore requires -Trio 0.22.0 or later. diff --git a/newsfragments/129.misc.rst b/newsfragments/129.misc.rst deleted file mode 100644 index 13b403f..0000000 --- a/newsfragments/129.misc.rst +++ /dev/null @@ -1,2 +0,0 @@ -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. diff --git a/pytest_trio/_version.py b/pytest_trio/_version.py index 9d95beb..af2f871 100644 --- a/pytest_trio/_version.py +++ b/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"