As of notmuch 0.34.2 [1], the python-cffi bindings make available the
configuration from both a config file and the database when accessing
Database.config like a dictionary.  It is therefore confusing that the
iterator operations only work on the configuration information stored
in the database.

[1]: d7f95724132bf658fd151630185899737e2ed829
 test/ | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/test/ b/test/
index 1df240dd..71823039 100755
--- a/test/
+++ b/test/
@@ -293,6 +293,27 @@
    test_expect_equal_file EXPECTED OUTPUT
+   test_begin_subtest "Config list from python ($config)"
+   test_subtest_known_broken
+   test_python <<EOF > OUTPUT
+from notmuch2 import Database
+for key in list(db.config):
+    print(key)
+   cat <<EOF > EXPECTED
+   test_expect_equal_file EXPECTED OUTPUT
    case $config in
           test_begin_subtest "Set shadowed config value in database ($config)"

notmuch mailing list --
To unsubscribe send an email to

Reply via email to