Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apptools/persistence/tests/test_state_pickler.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# License: BSD Style.

import base64
import pickle
import unittest
import math
import os
Expand Down Expand Up @@ -151,7 +152,7 @@ def verify(self, obj, state):
junk = state_pickler.gunzip_string(
decodestring(data[num_attr]['data'])
)
num = numpy.loads(junk)
num = pickle.loads(junk)
self.assertEqual(numpy.alltrue(numpy.ravel(num == obj.numeric)), 1)

self.assertTrue(data['ref']['type'] in ['reference', 'numeric'])
Expand Down