mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
* db->get_flags is only available in BerkeleyDB >= 4.2
This commit is contained in:
parent
fc006692ad
commit
80e95c142e
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue