1 Return-Path: <bremner@tesseract.cs.unb.ca>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by arlo.cworth.org (Postfix) with ESMTP id 6AF796DE10F8
\r
6 for <notmuch@notmuchmail.org>; Sat, 23 May 2015 13:31:19 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org
\r
11 X-Spam-Status: No, score=0.28 tagged_above=-999 required=5 tests=[AWL=0.270,
\r
12 T_HEADER_FROM_DIFFERENT_DOMAINS=0.01] autolearn=disabled
\r
13 Received: from arlo.cworth.org ([127.0.0.1])
\r
14 by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id LXUPCZkNjTKi for <notmuch@notmuchmail.org>;
\r
16 Sat, 23 May 2015 13:31:15 -0700 (PDT)
\r
17 Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net
\r
19 by arlo.cworth.org (Postfix) with ESMTPS id CCB8C6DE1926
\r
20 for <notmuch@notmuchmail.org>; Sat, 23 May 2015 13:31:14 -0700 (PDT)
\r
21 Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim
\r
22 4.80) (envelope-from <bremner@tesseract.cs.unb.ca>)
\r
23 id 1YwG41-0002re-3P; Sat, 23 May 2015 20:30:33 +0000
\r
24 Received: (nullmailer pid 8761 invoked by uid 1000); Sat, 23 May 2015
\r
26 From: David Bremner <david@tethera.net>
\r
27 To: notmuch@notmuchmail.org
\r
28 Subject: [PATCH 1/4] test: make python tests compatible with python3
\r
29 Date: Sat, 23 May 2015 22:28:44 +0200
\r
30 Message-Id: <1432412927-8373-2-git-send-email-david@tethera.net>
\r
31 X-Mailer: git-send-email 2.1.4
\r
32 In-Reply-To: <1432412927-8373-1-git-send-email-david@tethera.net>
\r
33 References: <1432412927-8373-1-git-send-email-david@tethera.net>
\r
34 X-BeenThere: notmuch@notmuchmail.org
\r
35 X-Mailman-Version: 2.1.18
\r
37 List-Id: "Use and development of the notmuch mail system."
\r
38 <notmuch.notmuchmail.org>
\r
39 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
40 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
41 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>
\r
42 List-Post: <mailto:notmuch@notmuchmail.org>
\r
43 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
44 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
45 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
46 X-List-Received-Date: Sat, 23 May 2015 20:31:19 -0000
\r
48 Making the test suite actually run them with python3 is left for
\r
51 test/T390-python.sh | 6 +++---
\r
52 1 file changed, 3 insertions(+), 3 deletions(-)
\r
54 diff --git a/test/T390-python.sh b/test/T390-python.sh
\r
55 index 3f03a2e..26d0b97 100755
\r
56 --- a/test/T390-python.sh
\r
57 +++ b/test/T390-python.sh
\r
58 @@ -11,7 +11,7 @@ db = notmuch.Database(mode=notmuch.Database.MODE.READ_ONLY)
\r
59 q_new = notmuch.Query(db, 'tag:inbox')
\r
60 q_new.set_sort(notmuch.Query.SORT.OLDEST_FIRST)
\r
61 for t in q_new.search_threads():
\r
62 - print t.get_thread_id()
\r
63 + print (t.get_thread_id())
\r
65 notmuch search --sort=oldest-first --output=threads tag:inbox | sed s/^thread:// > EXPECTED
\r
66 test_expect_equal_file OUTPUT EXPECTED
\r
67 @@ -23,7 +23,7 @@ db = notmuch.Database(mode=notmuch.Database.MODE.READ_ONLY)
\r
68 q_new = notmuch.Query(db, 'tag:inbox')
\r
69 q_new.set_sort(notmuch.Query.SORT.OLDEST_FIRST)
\r
70 for m in q_new.search_messages():
\r
71 - print m.get_message_id()
\r
72 + print (m.get_message_id())
\r
74 notmuch search --sort=oldest-first --output=messages tag:inbox | sed s/^id:// > EXPECTED
\r
75 test_expect_equal_file OUTPUT EXPECTED
\r
76 @@ -32,7 +32,7 @@ test_begin_subtest "get non-existent file"
\r
79 db = notmuch.Database(mode=notmuch.Database.MODE.READ_ONLY)
\r
80 -print db.find_message_by_filename("i-dont-exist")
\r
81 +print (db.find_message_by_filename("i-dont-exist"))
\r
83 test_expect_equal "$(cat OUTPUT)" "None"
\r