]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python-cffi/tests/test_database.py
Support aborting the atomic context
[notmuch] / bindings / python-cffi / tests / test_database.py
index 55069b5e35df85bb0739a1a0d865302c6693af32..a2c69de61366f91aebebe5e6f9fc4f9255e918c0 100644 (file)
@@ -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: