summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2009-12-01 15:44:38 +0000
committerRafael H. Schloming <rhs@apache.org>2009-12-01 15:44:38 +0000
commit2275fe9cd246f88abc92a797eaeb72901bfafdee (patch)
tree82f80233ddb1ecfc5c429fc6537c3889d4ca76d1
parentb6b8b1d803d8dd21ece5969d4ce73fe496330d16 (diff)
downloadqpid-python-2275fe9cd246f88abc92a797eaeb72901bfafdee.tar.gz
workaround for ptol failures
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@885803 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/python/qpid/messaging.py3
-rw-r--r--qpid/python/qpid/tests/messaging.py2
2 files changed, 4 insertions, 1 deletions
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({})