Commit b770e326 authored by Jim Fulton's avatar Jim Fulton

Adjusted the arbitrary class used for persistent objects in a test to

deal with changes in hashability of persistent lists in Python
2.6. (It's still a puzzle why they are hashable in realier versions of
Python, but not in Python 2.6.)
parent 37675c85
......@@ -32,9 +32,9 @@ class WeakRef(object):
Here's an example. We'll start by creating a persistent object and
a reference to it:
>>> import persistent.list
>>> import persistent, ZODB.tests.MinPO
>>> import ZODB.tests.util
>>> ob = persistent.list.PersistentList()
>>> ob = ZODB.tests.MinPO.MinPO()
>>> ref = WeakRef(ob)
>>> ref() is ob
True
......@@ -49,7 +49,7 @@ class WeakRef(object):
>>> WeakRef(ob) == ref
True
>>> ob2 = persistent.list.PersistentList([1])
>>> ob2 = ZODB.tests.MinPO.MinPO(1)
>>> WeakRef(ob2) == ref
False
......
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