diff options
| author | David Bremner <david@tethera.net> | 2015-05-23 22:28:44 +0200 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2015-06-08 16:41:53 +0200 |
| commit | ee1f573204f87a0b2c20a193abf5c4d71e91f049 (patch) | |
| tree | 2308700ad0809fb5e4a5b2df4c87c0c2737ecdeb /test/T390-python.sh | |
| parent | 9f57b7e8c5a39facaf8b0eb8281fd0c416de6699 (diff) | |
test: make python tests compatible with python3
Making the test suite actually run them with python3 is left for
future work.
Diffstat (limited to 'test/T390-python.sh')
| -rwxr-xr-x | test/T390-python.sh | 6 |
1 files 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 <<EOF import notmuch db = notmuch.Database(mode=notmuch.Database.MODE.READ_ONLY) -print db.find_message_by_filename("i-dont-exist") +print (db.find_message_by_filename("i-dont-exist")) EOF test_expect_equal "$(cat OUTPUT)" "None" |
