Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2F1C5200B5A for ; Thu, 4 Aug 2016 18:21:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2D91C160AAB; Thu, 4 Aug 2016 16:21:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 75B16160A6A for ; Thu, 4 Aug 2016 18:21:16 +0200 (CEST) Received: (qmail 85595 invoked by uid 500); 4 Aug 2016 16:21:15 -0000 Mailing-List: contact commits-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list commits@qpid.apache.org Received: (qmail 85586 invoked by uid 99); 4 Aug 2016 16:21:15 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2016 16:21:15 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 8C168E0A7D; Thu, 4 Aug 2016 16:21:15 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: astitcher@apache.org To: commits@qpid.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: qpid-proton git commit: PROTON-1272: [C++ binding] Allow example_test to run on Python 2.6 Date: Thu, 4 Aug 2016 16:21:15 +0000 (UTC) archived-at: Thu, 04 Aug 2016 16:21:17 -0000 Repository: qpid-proton Updated Branches: refs/heads/0.14.x bfae5bf1d -> 3f9004ca0 PROTON-1272: [C++ binding] Allow example_test to run on Python 2.6 Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/3f9004ca Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/3f9004ca Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/3f9004ca Branch: refs/heads/0.14.x Commit: 3f9004ca06323c0dc3b375acf26de9724459d779 Parents: bfae5bf Author: Andrew Stitcher Authored: Wed Aug 3 10:36:55 2016 -0400 Committer: Andrew Stitcher Committed: Thu Aug 4 12:18:00 2016 -0400 ---------------------------------------------------------------------- examples/cpp/example_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/3f9004ca/examples/cpp/example_test.py ---------------------------------------------------------------------- diff --git a/examples/cpp/example_test.py b/examples/cpp/example_test.py index 86f0d7e..e2052dc 100644 --- a/examples/cpp/example_test.py +++ b/examples/cpp/example_test.py @@ -392,13 +392,13 @@ Hello World! def test_scheduled_send_03(self): # Output should be a bunch of "send" lines but can't guarantee exactly how many. out = self.proc(["scheduled_send_03", "-a", self.addr+"scheduled_send", "-t", "0.1", "-i", "0.001"]).wait_exit().split() - self.assertGreater(len(out), 0); + self.assertTrue(len(out) > 0); self.assertEqual(["send"]*len(out), out) def test_scheduled_send(self): try: out = self.proc(["scheduled_send", "-a", self.addr+"scheduled_send", "-t", "0.1", "-i", "0.001"]).wait_exit().split() - self.assertGreater(len(out), 0); + self.assertTrue(len(out) > 0); self.assertEqual(["send"]*len(out), out) except ProcError: # File not found, not a C++11 build. pass --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org For additional commands, e-mail: commits-help@qpid.apache.org