Commit f5201ee5 authored by Barry Warsaw's avatar Barry Warsaw

Use cPickle if available

parent 3b785e4d
# Run the version related tests for a storage. Any storage that supports
# versions should be able to pass all these tests.
import pickle
try:
import cPickle
pickle = cPickle
#import cPickle as pickle
except ImportError:
import pickle
from ZODB import POSException
......@@ -272,7 +278,6 @@ class VersionStorage:
data, revid = self._storage.load(oid2, '')
assert pickle.loads(data) == 54
#JF# To do a test like you want, you have to add the data in a version
oid = self._storage.new_oid()
revid = self._dostore(oid, revid=revid, data=54, version='one')
......
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