Commit 5abf25f2 authored by Tres Seaver's avatar Tres Seaver

Made new tests ``test_mapping`` conform to the requirements for a ``dict``...

Made new tests ``test_mapping`` conform to the requirements for a ``dict`` initializer in Python 2.3.x.

parent e5f77204
...@@ -10,6 +10,9 @@ development) since ZODB 3.4's last public release: ...@@ -10,6 +10,9 @@ development) since ZODB 3.4's last public release:
PersistentMapping 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 - (3.4.3b1) The ``PersistentMapping`` makes changes by a ``pop()`` method call
persistent now. persistent now.
......
...@@ -38,6 +38,8 @@ class TestPMapping(unittest.TestCase): ...@@ -38,6 +38,8 @@ class TestPMapping(unittest.TestCase):
class OtherMapping: class OtherMapping:
def __init__(self, initmapping): def __init__(self, initmapping):
self.__data = initmapping self.__data = initmapping
def keys(self):
return self.__data.keys()
def items(self): def items(self):
return self.__data.items() return self.__data.items()
v0 = PersistentMapping(OtherMapping(u0)) v0 = PersistentMapping(OtherMapping(u0))
......
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