Skip to content

Commit

Permalink
Work with ZODB5.
Browse files Browse the repository at this point in the history
The constructor signature for TmpStore changed again. (It's private, dang it.)
  • Loading branch information
Jim Fulton committed May 17, 2016
1 parent 689a075 commit 24f79da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion relstorage/tests/blob/testblob.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,11 @@ def loadblob_tmpstore():
... tmpstore = TmpStore(blob_storage)
... except TypeError:
... # ZODB 3.8
... tmpstore = TmpStore('', blob_storage)
... try:
... tmpstore = TmpStore('', blob_storage)
... except AttributeError:
... # ZODB >=5
... tmpstore = TmpStore(blob_storage, connection._txn_time)
We can access the blob correctly:
Expand Down

0 comments on commit 24f79da

Please sign in to comment.