From d6332236d8d3a7e45dba869ac8757c4029cd667e Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Tue, 13 May 2008 17:23:35 +0000 Subject: 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@655951 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/python/qpid/spec010.py | 2 +- qpid/python/tests/codec010.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'qpid/python') diff --git a/qpid/python/qpid/spec010.py b/qpid/python/qpid/spec010.py index 58d305aa6c..9db73ae7cf 100644 --- a/qpid/python/qpid/spec010.py +++ b/qpid/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/qpid/python/tests/codec010.py b/qpid/python/tests/codec010.py index 65d4525758..bd3f875ac4 100644 --- a/qpid/python/tests/codec010.py +++ b/qpid/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"}) -- cgit v1.2.1