summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2008-05-13 17:23:35 +0000
committerRafael H. Schloming <rhs@apache.org>2008-05-13 17:23:35 +0000
commit6107d64ed1458e4e3038fa25b9286837212f51b4 (patch)
tree2442218851449a0b8914496002129ee82c665c6a
parentf3757f460aa0a3f25e8a25da31948feb68f9c56b (diff)
downloadqpid-python-6107d64ed1458e4e3038fa25b9286837212f51b4.tar.gz
QPID-1055: use int64 for encoding python both python int and longs; this ensures consistent behavior on both 64 bit and non 64 bit systems
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@655951 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--python/qpid/spec010.py2
-rw-r--r--python/tests/codec010.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/python/qpid/spec010.py b/python/qpid/spec010.py
index 58d305aa6c..9db73ae7cf 100644
--- a/python/qpid/spec010.py
+++ b/python/qpid/spec010.py
@@ -447,7 +447,7 @@ class Spec(Node):
ENCODINGS = {
basestring: "vbin16",
- int: "int32",
+ int: "int64",
long: "int64",
None.__class__: "void",
list: "list",
diff --git a/python/tests/codec010.py b/python/tests/codec010.py
index 65d4525758..bd3f875ac4 100644
--- a/python/tests/codec010.py
+++ b/python/tests/codec010.py
@@ -32,7 +32,7 @@ class CodecTest(TestCase):
sc = StringCodec(self.spec)
t.encode(sc, value)
decoded = t.decode(sc)
- assert decoded == value
+ assert decoded == value, "%s, %s" % (decoded, value)
def testMapString(self):
self.check("map", {"string": "this is a test"})