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