summaryrefslogtreecommitdiff
path: root/Lib/bsddb/test/test_dbobj.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2003-09-21 00:08:14 +0000
committerGregory P. Smith <greg@mad-scientist.com>2003-09-21 00:08:14 +0000
commit41631e8f668c9c2c724731d207edcc39c6fcf38c (patch)
tree89612b4cc0c0a621cdd71cf4fa9a3df18e815437 /Lib/bsddb/test/test_dbobj.py
parentcec1b3f6a7e899179c6463145ceff47a6c5bc805 (diff)
downloadcpython-git-41631e8f668c9c2c724731d207edcc39c6fcf38c.tar.gz
Adds basic support for BerkeleyDB 4.2.x. Compiles and passes tests; new
features in BerkeleyDB not exposed. notably: the DB_MPOOLFILE interface has not yet been wrapped in an object. Adds support for building and installing bsddb3 in python2.3 that has an older version of this module installed as bsddb without conflicts. The pybsddb.sf.net build/packaged version of the module uses a dynamicly loadable module called _pybsddb rather than _bsddb.
Diffstat (limited to 'Lib/bsddb/test/test_dbobj.py')
-rw-r--r--Lib/bsddb/test/test_dbobj.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/bsddb/test/test_dbobj.py b/Lib/bsddb/test/test_dbobj.py
index 93ea7ba84d..6799fc9c22 100644
--- a/Lib/bsddb/test/test_dbobj.py
+++ b/Lib/bsddb/test/test_dbobj.py
@@ -4,11 +4,11 @@ import unittest
import glob
try:
+ # For Pythons w/distutils pybsddb
+ from bsddb3 import db, dbobj
+except ImportError:
# For Python 2.3
from bsddb import db, dbobj
-except ImportError:
- # For earlier Pythons w/distutils pybsddb
- from bsddb3 import db, dbobj
#----------------------------------------------------------------------