Overview

Request 1129176 accepted

- update to 1.2.0:
* Added special monkeypatching if `Apport
`_ has
overridden ``sys.excepthook`` so it will format exception
groups correctly
* Added a backport of ``contextlib.suppress()`` from Python
3.12.1 which also handles suppressing exceptions inside
exception groups
* Fixed bare ``raise`` in a handler reraising the original
naked exception rather than an exception group which is what
is raised when you do a ``raise`` in an ``except*`` handler
* ``catch()`` now raises a ``TypeError`` if passed an async
exception handler instead of just giving a ``RuntimeWarning``
about the coroutine never being awaited.
* Fixed plain ``raise`` statement in an exception handler
callback to work like a ``raise`` in an ``except*`` block
* Fixed new exception group not being chained to the original
exception when raising an exception group from exceptions
raised in handler callbacks
* Fixed type annotations of the ``derive()``, ``subgroup()``
and ``split()`` methods to match the ones in typeshed
- drop skip-test_catch_handler_raises-for-older-311.patch
(upstream)

- Add skip-test_catch_handler_raises-for-older-311.patch

Request History
Dirk Mueller's avatar

dirkmueller created request

- update to 1.2.0:
* Added special monkeypatching if `Apport
`_ has
overridden ``sys.excepthook`` so it will format exception
groups correctly
* Added a backport of ``contextlib.suppress()`` from Python
3.12.1 which also handles suppressing exceptions inside
exception groups
* Fixed bare ``raise`` in a handler reraising the original
naked exception rather than an exception group which is what
is raised when you do a ``raise`` in an ``except*`` handler
* ``catch()`` now raises a ``TypeError`` if passed an async
exception handler instead of just giving a ``RuntimeWarning``
about the coroutine never being awaited.
* Fixed plain ``raise`` statement in an exception handler
callback to work like a ``raise`` in an ``except*`` block
* Fixed new exception group not being chained to the original
exception when raising an exception group from exceptions
raised in handler callbacks
* Fixed type annotations of the ``derive()``, ``subgroup()``
and ``split()`` methods to match the ones in typeshed
- drop skip-test_catch_handler_raises-for-older-311.patch
(upstream)

- Add skip-test_catch_handler_raises-for-older-311.patch


Factory Auto's avatar

factory-auto added opensuse-review-team as a reviewer

Please review sources


Factory Auto's avatar

factory-auto accepted review

Check script succeeded


Saul Goodman's avatar

licensedigger accepted review

ok


Ana Guerrero's avatar

anag+factory set openSUSE:Factory:Staging:I as a staging project

Being evaluated by staging project "openSUSE:Factory:Staging:I"


Ana Guerrero's avatar

anag+factory accepted review

Picked "openSUSE:Factory:Staging:I"


Marcus Rueckert's avatar

darix accepted review

Accepted review for by_group opensuse-review-team request 1129176 from user anag+factory


Ana Guerrero's avatar

anag+factory accepted review

Staging Project openSUSE:Factory:Staging:I got accepted.


Ana Guerrero's avatar

anag+factory approved review

Staging Project openSUSE:Factory:Staging:I got accepted.


Ana Guerrero's avatar

anag+factory accepted request

Staging Project openSUSE:Factory:Staging:I got accepted.

openSUSE Build Service is sponsored by