[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/tests/blob_transaction.txt Updated the tpc_abort test to be a bit more careful about handling new serials.

Jim Fulton jim at zope.com
Fri Dec 5 18:20:25 EST 2008


Log message for revision 93702:
  Updated the tpc_abort test to be a bit more careful about handling new serials.
  

Changed:
  U   ZODB/trunk/src/ZODB/tests/blob_transaction.txt

-=-
Modified: ZODB/trunk/src/ZODB/tests/blob_transaction.txt
===================================================================
--- ZODB/trunk/src/ZODB/tests/blob_transaction.txt	2008-12-05 23:20:22 UTC (rev 93701)
+++ ZODB/trunk/src/ZODB/tests/blob_transaction.txt	2008-12-05 23:20:24 UTC (rev 93702)
@@ -377,6 +377,13 @@
     >>> open('blobfile2', 'w').write('This data should go away too')
     >>> s2 = blob_storage.storeBlob(new_oid, '\0'*8, olddata, 'blobfile2',
     ...                             '', t)
+
+    >>> serials = blob_storage.tpc_vote(t)
+    >>> if s1 is None:
+    ...     s1 = [s for (oid, s) in serials if oid == blob._p_oid][0]
+    >>> if s2 is None:
+    ...     s2 = [s for (oid, s) in serials if oid == new_oid][0]
+
     >>> blob_storage.tpc_abort(t)
 
 Now, the serial for the existing blob should be the same:



More information about the Zodb-checkins mailing list