X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fpython-cffi%2Ftests%2Ftest_database.py;fp=bindings%2Fpython-cffi%2Ftests%2Ftest_database.py;h=a2c69de61366f91aebebe5e6f9fc4f9255e918c0;hp=55069b5e35df85bb0739a1a0d865302c6693af32;hb=776a54a0e437651abd69a03b9f7d591ea1f992cb;hpb=2d895a0119b423b117d10e890c9e0eb5d2a9cdf8 diff --git a/bindings/python-cffi/tests/test_database.py b/bindings/python-cffi/tests/test_database.py index 55069b5e..a2c69de6 100644 --- a/bindings/python-cffi/tests/test_database.py +++ b/bindings/python-cffi/tests/test_database.py @@ -127,6 +127,11 @@ class TestAtomic: with pytest.raises(errors.UnbalancedAtomicError): ctx.force_end() + def test_abort(self, db): + with db.atomic() as txn: + txn.abort() + assert db.closed + class TestRevision: