[PATCH] test: known broken test for list(db.config) in python-cffi bindings

Subject: [PATCH] test: known broken test for list(db.config) in python-cffi bindings

Date: Tue, 8 Feb 2022 21:11:52 -0400

To: notmuch@notmuchmail.org


From: David Bremner

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

The likely fix is to switch to the newer notmuch_config_pairs_t API.

[1]: d7f95724132bf658fd151630185899737e2ed829
 test/T055-path-config.sh | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/test/T055-path-config.sh b/test/T055-path-config.sh
index 1df240dd..1b63bc78 100755
--- a/test/T055-path-config.sh
+++ b/test/T055-path-config.sh
@@ -293,6 +293,33 @@ user.primary_email=test_suite@notmuchmail.org
    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 -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org