From 2275fe9cd246f88abc92a797eaeb72901bfafdee Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Tue, 1 Dec 2009 15:44:38 +0000 Subject: workaround for ptol failures git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@885803 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/python/qpid/messaging.py | 3 +++ qpid/python/qpid/tests/messaging.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'qpid/python') diff --git a/qpid/python/qpid/messaging.py b/qpid/python/qpid/messaging.py index aa01d9ec8c..5dd8b22ee3 100644 --- a/qpid/python/qpid/messaging.py +++ b/qpid/python/qpid/messaging.py @@ -712,6 +712,9 @@ def codec(name): return encode, decode +# XXX: need to correctly parse the mime type and deal with +# content-encoding header + TYPE_MAPPINGS={ dict: "amqp/map", list: "amqp/list", diff --git a/qpid/python/qpid/tests/messaging.py b/qpid/python/qpid/tests/messaging.py index adaa46f73c..cbfbc5a56d 100644 --- a/qpid/python/qpid/tests/messaging.py +++ b/qpid/python/qpid/tests/messaging.py @@ -800,7 +800,7 @@ class MessageTests(Base): def testCreateUnicode(self): m = Message(u"unicode") assert m.content == u"unicode" - assert m.content_type == "text/plain; charset=utf8" + assert m.content_type == "text/plain" def testCreateMap(self): m = Message({}) -- cgit v1.2.1