[Zodb-checkins] SVN: ZODB/trunk/src/persistent/wref.py Adjusted the arbitrary class used for persistent objects in a test to
Jim Fulton
jim at zope.com
Fri Oct 17 10:02:44 EDT 2008
Log message for revision 92294:
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.)
Changed:
U ZODB/trunk/src/persistent/wref.py
-=-
Modified: ZODB/trunk/src/persistent/wref.py
===================================================================
--- ZODB/trunk/src/persistent/wref.py 2008-10-17 14:02:39 UTC (rev 92293)
+++ ZODB/trunk/src/persistent/wref.py 2008-10-17 14:02:43 UTC (rev 92294)
@@ -32,9 +32,9 @@
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 @@
>>> WeakRef(ob) == ref
True
- >>> ob2 = persistent.list.PersistentList([1])
+ >>> ob2 = ZODB.tests.MinPO.MinPO(1)
>>> WeakRef(ob2) == ref
False
More information about the Zodb-checkins
mailing list