diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2007-11-05 09:07:40 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2007-11-05 09:07:40 (GMT) |
commit | 80e95c142ef1ad007f5038ac48db03d7d5309203 (patch) | |
tree | b465c4995708bd2d3478ce55a2e46170df520e96 /Lib/bsddb/test | |
parent | fc006692ad99b1f15f5e035ff4bf4d6ad2270805 (diff) | |
download | cpython-80e95c142ef1ad007f5038ac48db03d7d5309203.zip cpython-80e95c142ef1ad007f5038ac48db03d7d5309203.tar.gz cpython-80e95c142ef1ad007f5038ac48db03d7d5309203.tar.bz2 |
* db->get_flags is only available in BerkeleyDB >= 4.2
Diffstat (limited to 'Lib/bsddb/test')
-rw-r--r-- | Lib/bsddb/test/test_misc.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/bsddb/test/test_misc.py b/Lib/bsddb/test/test_misc.py index 598e626..ef9c0aa 100644 --- a/Lib/bsddb/test/test_misc.py +++ b/Lib/bsddb/test/test_misc.py @@ -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) |