]> arthur.barton.de Git - bup.git/commitdiff
Drop @contextmanager from finalized() and buptest
authorRob Browning <rlb@defaultvalue.org>
Fri, 24 Jun 2022 16:17:48 +0000 (11:17 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 25 Jun 2022 18:26:11 +0000 (13:26 -0500)
Because it involves a generator, @contextmanager creates managers that
are incompatible with ExitStack.pop_all() because they close during
that call -- exactly what pop_all() is intended to avoid.

So begin dropping @contextmanager in preference to explicit context
management classes/methods.

cf. https://github.com/python/cpython/issues/88458

Signed-off-by: Rob Browning <rlb@defaultvalue.org>

No differences found