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 <[email protected]> Authored: Wed Aug 3 10:36:55 2016 -0400 Committer: Andrew Stitcher <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
