[Zodb-checkins] SVN: ZODB/branches/3.8/src/persistent/wref.py Adjusted the arbitrary class used for persistent objects in a test to
Jim Fulton
jim at zope.com
Tue Oct 7 11:26:40 EDT 2008
Log message for revision 91853:
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/branches/3.8/src/persistent/wref.py
-=-
Modified: ZODB/branches/3.8/src/persistent/wref.py
===================================================================
--- ZODB/branches/3.8/src/persistent/wref.py 2008-10-07 15:26:37 UTC (rev 91852)
+++ ZODB/branches/3.8/src/persistent/wref.py 2008-10-07 15:26:40 UTC (rev 91853)
@@ -30,9 +30,9 @@
Here's an example. We'll start by creating a persistent object and
a refernce 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
@@ -47,7 +47,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