]> granicus.if.org Git - python/commitdiff
* db->get_flags is only available in BerkeleyDB >= 4.2
authorGregory P. Smith <greg@mad-scientist.com>
Mon, 5 Nov 2007 09:07:40 +0000 (09:07 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Mon, 5 Nov 2007 09:07:40 +0000 (09:07 +0000)
Lib/bsddb/test/test_misc.py

index 598e62607fcb399f92a24d9edd71e02a0fb0abc4..ef9c0aa8b6956bc0921433aa715890b8534da76c 100644 (file)
@@ -91,6 +91,10 @@ class MiscTestCase(unittest.TestCase):
             os.unlink(self.filename)
 
     def test_DB_set_flags_persists(self):
+        if db.version() < (4,2):
+            # The get_flags API required for this to work is only available
+            # in BerkeleyDB >= 4.2
+            return
         try:
             db1 = db.DB()
             db1.set_flags(db.DB_DUPSORT)