Commit a810d770 authored by Chris McDonough's avatar Chris McDonough

Add more txn tests... these now fail with a POSKeyError, because at some point...

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.
parent 4c55d269
...@@ -86,6 +86,14 @@ object are cleared. ...@@ -86,6 +86,14 @@ object are cleared.
... ...
ValueError: I/O operation on closed file 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 While we are testing this, we don't need the storage directory and databases
anymore: anymore:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment