summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/test/test_all.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/bsddb/test/test_all.py')
-rw-r--r--Lib/bsddb/test/test_all.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/bsddb/test/test_all.py b/Lib/bsddb/test/test_all.py
index 15b310f..358f5d1 100644
--- a/Lib/bsddb/test/test_all.py
+++ b/Lib/bsddb/test/test_all.py
@@ -16,7 +16,12 @@ if 'silent' in sys.argv: # take care of old flag, just in case
def print_versions():
- from bsddb import db
+ try:
+ # For Python 2.3
+ from bsddb import db
+ except ImportError:
+ # For earlier Pythons w/distutils pybsddb
+ from bsddb3 import db
print
print '-=' * 38
print db.DB_VERSION_STRING