]> git.cworth.org Git - notmuch/blobdiff - bindings/python-cffi/tests/test_database.py
lib: introduce notmuch_database_create_with_config
[notmuch] / bindings / python-cffi / tests / test_database.py
index a2c69de61366f91aebebe5e6f9fc4f9255e918c0..9b3219c00e634a9e4d91fa6d3c7c329dd8e59aa2 100644 (file)
@@ -80,7 +80,7 @@ class TestCreate:
             db.create(tmppath)
 
     def test_create_existing(self, tmppath, db):
-        with pytest.raises(errors.FileError):
+        with pytest.raises(errors.DatabaseExistsError):
             dbmod.Database.create(path=tmppath)
 
     def test_close(self, db):