From ee1f573204f87a0b2c20a193abf5c4d71e91f049 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sat, 23 May 2015 22:28:44 +0200 Subject: [PATCH] test: make python tests compatible with python3 Making the test suite actually run them with python3 is left for future work. --- test/T390-python.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/T390-python.sh b/test/T390-python.sh index 3f03a2e3..26d0b976 100755 --- a/test/T390-python.sh +++ b/test/T390-python.sh @@ -11,7 +11,7 @@ db = notmuch.Database(mode=notmuch.Database.MODE.READ_ONLY) q_new = notmuch.Query(db, 'tag:inbox') q_new.set_sort(notmuch.Query.SORT.OLDEST_FIRST) for t in q_new.search_threads(): - print t.get_thread_id() + print (t.get_thread_id()) EOF notmuch search --sort=oldest-first --output=threads tag:inbox | sed s/^thread:// > EXPECTED test_expect_equal_file OUTPUT EXPECTED @@ -23,7 +23,7 @@ db = notmuch.Database(mode=notmuch.Database.MODE.READ_ONLY) q_new = notmuch.Query(db, 'tag:inbox') q_new.set_sort(notmuch.Query.SORT.OLDEST_FIRST) for m in q_new.search_messages(): - print m.get_message_id() + print (m.get_message_id()) EOF notmuch search --sort=oldest-first --output=messages tag:inbox | sed s/^id:// > EXPECTED test_expect_equal_file OUTPUT EXPECTED @@ -32,7 +32,7 @@ test_begin_subtest "get non-existent file" test_python <