summaryrefslogtreecommitdiff
path: root/Lib/bsddb
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2005-06-09 07:11:42 +0000
committerGregory P. Smith <greg@mad-scientist.com>2005-06-09 07:11:42 +0000
commit59cdf7bffdc1722edf55efdb36b07c138a7abca5 (patch)
treea58372dd3aac03c000b72d3066b476ebfb2a3b95 /Lib/bsddb
parent6fbf3c5e3bc026a2fcd43f07185703c6bd875299 (diff)
downloadcpython-59cdf7bffdc1722edf55efdb36b07c138a7abca5.tar.gz
fix import to work with either module name.
Diffstat (limited to 'Lib/bsddb')
-rw-r--r--Lib/bsddb/test/test_compare.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/bsddb/test/test_compare.py b/Lib/bsddb/test/test_compare.py
index 63afb4f59d..59a45ec502 100644
--- a/Lib/bsddb/test/test_compare.py
+++ b/Lib/bsddb/test/test_compare.py
@@ -7,7 +7,12 @@ import test_all
from cStringIO import StringIO
import unittest
-from bsddb3 import db
+try:
+ # For Pythons w/distutils pybsddb
+ from bsddb3 import db, dbshelve
+except ImportError:
+ # For Python 2.3
+ from bsddb import db, dbshelve
lexical_cmp = cmp