You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2016/05/17 17:45:20 UTC
[1/2] qpid-proton git commit: PROTON-1061: update expected textual
output for the __repr__ defs for different types
Repository: qpid-proton
Updated Branches:
refs/heads/master 7beab449c -> 631255c6c
PROTON-1061: update expected textual output for the __repr__ defs for different types
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/631255c6
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/631255c6
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/631255c6
Branch: refs/heads/master
Commit: 631255c6c677375bc5c1f9ccd238c88bc6a76646
Parents: 1d57511
Author: Gordon Sim <gs...@redhat.com>
Authored: Tue May 17 18:44:45 2016 +0100
Committer: Gordon Sim <gs...@redhat.com>
Committed: Tue May 17 18:44:54 2016 +0100
----------------------------------------------------------------------
examples/python/test_examples.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/631255c6/examples/python/test_examples.py
----------------------------------------------------------------------
diff --git a/examples/python/test_examples.py b/examples/python/test_examples.py
index 3d97b97..7ecde61 100644
--- a/examples/python/test_examples.py
+++ b/examples/python/test_examples.py
@@ -56,7 +56,7 @@ class ExamplesTest(unittest.TestCase):
s.wait()
r.wait()
actual = [l.strip() for l in r.stdout]
- expected = ["{%s'sequence': %i}" % (_unicode_prefix, (i+1)) for i in range(100)]
+ expected = ["{%s'sequence': int32(%i)}" % (_unicode_prefix, (i+1)) for i in range(100)]
self.assertEqual(actual, expected)
def test_client_server(self, client=['client.py'], server=['server.py'], sleep=0):
@@ -135,7 +135,7 @@ class ExamplesTest(unittest.TestCase):
s.wait()
r.wait()
actual = [l.strip() for l in r.stdout]
- expected = ["{%s'sequence': %i}" % (_unicode_prefix, (i+1)) for i in range(100)]
+ expected = ["{%s'sequence': int32(%i)}" % (_unicode_prefix, (i+1)) for i in range(100)]
self.assertEqual(actual, expected)
def test_direct_send_simple_recv(self):
@@ -147,5 +147,5 @@ class ExamplesTest(unittest.TestCase):
r.wait()
s.wait()
actual = [l.strip() for l in r.stdout]
- expected = ["{%s'sequence': %i}" % (_unicode_prefix, (i+1)) for i in range(100)]
+ expected = ["{%s'sequence': int32(%i)}" % (_unicode_prefix, (i+1)) for i in range(100)]
self.assertEqual(actual, expected)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org
[2/2] qpid-proton git commit: NO-JIRA: if get error with no
description, use the name for clarity
Posted by gs...@apache.org.
NO-JIRA: if get error with no description, use the name for clarity
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/1d575114
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/1d575114
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/1d575114
Branch: refs/heads/master
Commit: 1d575114bb9a9cb572ec25d39ece170b0eaeae8a
Parents: 7beab44
Author: Gordon Sim <gs...@redhat.com>
Authored: Tue May 17 18:44:03 2016 +0100
Committer: Gordon Sim <gs...@redhat.com>
Committed: Tue May 17 18:44:54 2016 +0100
----------------------------------------------------------------------
proton-c/bindings/python/proton/handlers.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/1d575114/proton-c/bindings/python/proton/handlers.py
----------------------------------------------------------------------
diff --git a/proton-c/bindings/python/proton/handlers.py b/proton-c/bindings/python/proton/handlers.py
index a1cf836..a689e65 100644
--- a/proton-c/bindings/python/proton/handlers.py
+++ b/proton-c/bindings/python/proton/handlers.py
@@ -231,7 +231,7 @@ class EndpointStateHandler(Handler):
@classmethod
def print_error(cls, endpoint, endpoint_type):
if endpoint.remote_condition:
- logging.error(endpoint.remote_condition.description)
+ logging.error(endpoint.remote_condition.description or endpoint.remote_condition.name)
elif cls.is_local_open(endpoint) and cls.is_remote_closed(endpoint):
logging.error("%s closed by peer" % endpoint_type)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org