Commit 7d4ea692 authored by David Glick's avatar David Glick

skip test for deleting unorderable key in Python 3

parent 2c17624b
......@@ -13,6 +13,7 @@
##############################################################################
import unittest
from .common import _skip_under_Py3k
from .common import BTreeTests
from .common import ExtendedSetTests
from .common import InternalKeysMappingTest
......@@ -160,7 +161,12 @@ class OOBTreeTest(BTreeTests, unittest.TestCase):
self.assertRaises(KeyError, t.__getitem__, C())
self.assertFalse(C() in t)
def testDeleteExistingKeyWithDefaultComparison(self):
# Check that a None key can be deleted in Python 2.
# This doesn't work on Python 3 because None is unorderable,
# so the tree can't be searched. But None also can't be inserted,
# and we don't support migrating Python 2 databases to Python 3.
@_skip_under_Py3k
def testDeleteNoneKey(self):
t = self._makeOne()
bucket_state = ((None, 42),)
tree_state = ((bucket_state,),)
......
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