You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2008/05/13 19:23:35 UTC
svn commit: r655951 - in /incubator/qpid/trunk/qpid/python: qpid/spec010.py
tests/codec010.py
Author: rhs
Date: Tue May 13 10:23:35 2008
New Revision: 655951
URL: http://svn.apache.org/viewvc?rev=655951&view=rev
Log:
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
Modified:
incubator/qpid/trunk/qpid/python/qpid/spec010.py
incubator/qpid/trunk/qpid/python/tests/codec010.py
Modified: incubator/qpid/trunk/qpid/python/qpid/spec010.py
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/python/qpid/spec010.py?rev=655951&r1=655950&r2=655951&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/python/qpid/spec010.py (original)
+++ incubator/qpid/trunk/qpid/python/qpid/spec010.py Tue May 13 10:23:35 2008
@@ -447,7 +447,7 @@
ENCODINGS = {
basestring: "vbin16",
- int: "int32",
+ int: "int64",
long: "int64",
None.__class__: "void",
list: "list",
Modified: incubator/qpid/trunk/qpid/python/tests/codec010.py
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/python/tests/codec010.py?rev=655951&r1=655950&r2=655951&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/python/tests/codec010.py (original)
+++ incubator/qpid/trunk/qpid/python/tests/codec010.py Tue May 13 10:23:35 2008
@@ -32,7 +32,7 @@
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"})