Commit 432e9e8e authored by Tres Seaver's avatar Tres Seaver

Merge r121830 from /ZODB/branches/jim-python-btrees.

Tests still don't pass. :(
parent 25c7b027
This diff is collapsed.
...@@ -1903,6 +1903,12 @@ class BTreeTests(MappingBase): ...@@ -1903,6 +1903,12 @@ class BTreeTests(MappingBase):
self.assertEqual(str(detail), "the bucket being iterated " self.assertEqual(str(detail), "the bucket being iterated "
"changed size") "changed size")
break break
except KeyError, v:
# The Python implementation behaves very differently and
# gives a key error in this situation. It can't mess up
# memory and can't readily detect changes to underlying buckets
# in any sane way.
self.assertEqual(str(v), str(k[0]))
self._checkIt(t) self._checkIt(t)
class IIBTreeTest(BTreeTests, unittest.TestCase): class IIBTreeTest(BTreeTests, unittest.TestCase):
......
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