diff options
Diffstat (limited to 'Lib/bsddb/test/test_dbtables.py')
-rw-r--r-- | Lib/bsddb/test/test_dbtables.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/bsddb/test/test_dbtables.py b/Lib/bsddb/test/test_dbtables.py index a250cf81c0..685b08d4ae 100644 --- a/Lib/bsddb/test/test_dbtables.py +++ b/Lib/bsddb/test/test_dbtables.py @@ -30,7 +30,12 @@ except ImportError: import unittest from test_all import verbose -from bsddb import db, dbtables +try: + # For Python 2.3 + from bsddb import db, dbtables +except ImportError: + # For earlier Pythons w/distutils pybsddb + from bsddb3 import db, dbtables |