Commit 8215fdc8 authored by Jason Madden's avatar Jason Madden

One more place to use the PersistentUnpickler. Fixes AnalyzeDotPyTest under PyPy.

parent cbee2907
......@@ -6,7 +6,7 @@ from __future__ import print_function
import sys
from ZODB.FileStorage import FileStorage
from ZODB._compat import Unpickler, BytesIO
from ZODB._compat import PersistentUnpickler, BytesIO
......@@ -22,8 +22,7 @@ def fake_find_class(module, name):
def FakeUnpickler(f):
unpickler = Unpickler(f)
unpickler.find_global = fake_find_class
unpickler = PersistentUnpickler(fake_find_class, None, f)
return unpickler
......
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