[Zodb-checkins] SVN: ZODB/branches/3.4/ Made new tests ``test_mapping`` conform to the requirements for a ``dict`` initializer in Python 2.3.x.

Tres Seaver tseaver at palladion.com
Sat Feb 11 15:55:54 EST 2006


Log message for revision 41595:
  Made new tests ``test_mapping`` conform to the requirements for a ``dict`` initializer in Python 2.3.x.
  
  

Changed:
  U   ZODB/branches/3.4/NEWS.txt
  U   ZODB/branches/3.4/src/persistent/tests/test_mapping.py

-=-
Modified: ZODB/branches/3.4/NEWS.txt
===================================================================
--- ZODB/branches/3.4/NEWS.txt	2006-02-11 18:57:11 UTC (rev 41594)
+++ ZODB/branches/3.4/NEWS.txt	2006-02-11 20:55:54 UTC (rev 41595)
@@ -10,6 +10,9 @@
 PersistentMapping
 -----------------
 
+- (3.4.3b1) Made new tests ``test_mapping`` conform to the requirements for
+  a ``dict`` initializer in Python 2.3.x.
+
 - (3.4.3b1) The ``PersistentMapping`` makes changes by a ``pop()`` method call
   persistent now.
 

Modified: ZODB/branches/3.4/src/persistent/tests/test_mapping.py
===================================================================
--- ZODB/branches/3.4/src/persistent/tests/test_mapping.py	2006-02-11 18:57:11 UTC (rev 41594)
+++ ZODB/branches/3.4/src/persistent/tests/test_mapping.py	2006-02-11 20:55:54 UTC (rev 41595)
@@ -38,6 +38,8 @@
         class OtherMapping:
             def __init__(self, initmapping):
                 self.__data = initmapping
+            def keys(self):
+                return self.__data.keys()
             def items(self):
                 return self.__data.items()
         v0 = PersistentMapping(OtherMapping(u0))



More information about the Zodb-checkins mailing list