[Zodb-checkins]
SVN: ZODB/trunk/src/ZODB/Blobs/tests/transaction.txt
- Fixed example to not include the 'L' of longint on some
platforms and not
Christian Theune
ct at gocept.com
Wed Mar 28 04:03:07 EDT 2007
Log message for revision 73816:
- Fixed example to not include the 'L' of longint on some platforms and not
on others.
Changed:
U ZODB/trunk/src/ZODB/Blobs/tests/transaction.txt
-=-
Modified: ZODB/trunk/src/ZODB/Blobs/tests/transaction.txt
===================================================================
--- ZODB/trunk/src/ZODB/Blobs/tests/transaction.txt 2007-03-28 07:59:02 UTC (rev 73815)
+++ ZODB/trunk/src/ZODB/Blobs/tests/transaction.txt 2007-03-28 08:03:06 UTC (rev 73816)
@@ -188,12 +188,14 @@
'this is blob 1woot!this is from connection 3'
BlobStorages implementation of getSize() includes the blob data and adds it to
-the underlying storages result of getSize()::
+the underlying storages result of getSize(). (We need to ensure the last
+number to be an int, otherwise it will be a long on 32-bit platforms and an
+int on 64-bit)::
>>> underlying_size = base_storage.getSize()
>>> blob_size = blob_storage.getSize()
- >>> blob_size - underlying_size
- 91L
+ >>> int(blob_size - underlying_size)
+ 91
Savepoints and Blobs
More information about the Zodb-checkins
mailing list