diff options
author | Aleksey Lim <alsroot@sugarlabs.org> | 2012-10-26 14:23:29 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@sugarlabs.org> | 2012-10-26 14:23:29 (GMT) |
commit | bca7e96ff4d897d4b839de8c921536d0e3c97793 (patch) | |
tree | fd218c56ff4634a1ab4edcb9e04e3d4f78072735 /tests/units/storage.py | |
parent | 7a327b5e48f2fbf01473015e705a0ceac2152b46 (diff) |
Switch storage to cPickle to speed up processing
Diffstat (limited to 'tests/units/storage.py')
-rwxr-xr-x | tests/units/storage.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/units/storage.py b/tests/units/storage.py index dc87309..60adcc2 100755 --- a/tests/units/storage.py +++ b/tests/units/storage.py @@ -3,9 +3,9 @@ import os import time -import json import hashlib import threading +import cPickle as pickle from cStringIO import StringIO from os.path import exists @@ -35,7 +35,7 @@ class StorageTest(tests.Test): storage = self.storage([StoredProperty('prop')]) self.assertEqual(None, storage.get('guid').get('prop')) - self.touch(('gu/guid/prop', json.dumps({ + self.touch(('gu/guid/prop', pickle.dumps({ 'value': 'value', 'foo': 'bar', }))) |