fix import to work with either module name.
diff --git a/Lib/bsddb/test/test_compare.py b/Lib/bsddb/test/test_compare.py
index 63afb4f..59a45ec 100644
--- a/Lib/bsddb/test/test_compare.py
+++ b/Lib/bsddb/test/test_compare.py
@@ -7,7 +7,12 @@
 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