[Python-checkins] r58853 - python/trunk/Lib/bsddb/test/test_misc.py

gregory.p.smith python-checkins at python.org
Mon Nov 5 10:07:40 CET 2007


Author: gregory.p.smith
Date: Mon Nov  5 10:07:40 2007
New Revision: 58853

Modified:
   python/trunk/Lib/bsddb/test/test_misc.py
Log:
* db->get_flags is only available in BerkeleyDB >= 4.2


Modified: python/trunk/Lib/bsddb/test/test_misc.py
==============================================================================
--- python/trunk/Lib/bsddb/test/test_misc.py	(original)
+++ python/trunk/Lib/bsddb/test/test_misc.py	Mon Nov  5 10:07:40 2007
@@ -91,6 +91,10 @@
             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)


More information about the Python-checkins mailing list