diff options
author | Rafael H. Schloming <rhs@apache.org> | 2008-05-13 17:23:35 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2008-05-13 17:23:35 +0000 |
commit | d6332236d8d3a7e45dba869ac8757c4029cd667e (patch) | |
tree | 569dcbe0501a7bda42a62e188f3532cdd39af28d | |
parent | 3e94a485e93dcd685d86ab91d2787df9d6c26885 (diff) | |
download | qpid-python-d6332236d8d3a7e45dba869ac8757c4029cd667e.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@655951 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/python/qpid/spec010.py | 2 | ||||
-rw-r--r-- | qpid/python/tests/codec010.py | 2 |
2 files changed, 2 insertions, 2 deletions
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"}) |