[Zodb-checkins] SVN: ZODB/branches/ctheune-blobsupport/src/ZODB/Blobs/tests/transaction.txt Add more txn tests... these now fail with a POSKeyError, because at some point we need to unghost a blob object which appears to retain its existing _p_blob_uncommitted and/or _p_blob_data attr values.

Chris McDonough chrism at plope.com
Fri Mar 25 01:59:38 EST 2005


Log message for revision 29679:
  Add more txn tests... these now fail with a POSKeyError, because at some point we need to unghost a blob object which appears to retain its existing _p_blob_uncommitted and/or _p_blob_data attr values.
  

Changed:
  U   ZODB/branches/ctheune-blobsupport/src/ZODB/Blobs/tests/transaction.txt

-=-
Modified: ZODB/branches/ctheune-blobsupport/src/ZODB/Blobs/tests/transaction.txt
===================================================================
--- ZODB/branches/ctheune-blobsupport/src/ZODB/Blobs/tests/transaction.txt	2005-03-25 06:56:37 UTC (rev 29678)
+++ ZODB/branches/ctheune-blobsupport/src/ZODB/Blobs/tests/transaction.txt	2005-03-25 06:59:37 UTC (rev 29679)
@@ -86,6 +86,14 @@
         ...
     ValueError: I/O operation on closed file
 
+If we open a blob for writing, its write refcount should be nonzero:
+
+    >>> blob2._get_refcounts()
+    (0, 0)
+    >>> b2 = blob2.open('a')
+    >>> blob2._get_refcounts()
+    (0, 1)
+
 While we are testing this, we don't need the storage directory and databases
 anymore:
 



More information about the Zodb-checkins mailing list