]> arthur.barton.de Git - bup.git/commit
Check that all context managed objects are properly closed
authorRob Browning <rlb@defaultvalue.org>
Sun, 24 Oct 2021 17:24:16 +0000 (12:24 -0500)
committerRob Browning <rlb@defaultvalue.org>
Mon, 22 Nov 2021 16:35:28 +0000 (10:35 -0600)
commit0e574aa5760f8511abba6ccaf805f34c2caeb996
treebadf6759c23d578b38f5f3d3c366127df63da7be
parent1eb38bb8e0c63d02a4672d4beeccafe06dba3d04
Check that all context managed objects are properly closed

Ensure all of our context managed objects have a __del__ that asserts
that the instance has been properly closed so that we'll be more
likely to notice related oversights.

This will only work in cases where __del__ is called before shutdown,
but that should normally be the case for cpython.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/bloom.py
lib/bup/client.py
lib/bup/cmd/split.py
lib/bup/compat.py
lib/bup/git.py
lib/bup/helpers.py
lib/bup/hlinkdb.py
lib/bup/index.py
lib/bup/midx.py
lib/bup/repo.py
lib/bup/vfs.py