diff options
Diffstat (limited to 'Lib/bsddb/test/test_misc.py')
-rw-r--r-- | Lib/bsddb/test/test_misc.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/bsddb/test/test_misc.py b/Lib/bsddb/test/test_misc.py index 24c3fc6..7f7a6ee 100644 --- a/Lib/bsddb/test/test_misc.py +++ b/Lib/bsddb/test/test_misc.py @@ -5,8 +5,12 @@ import os import sys import unittest -from bsddb import db -from bsddb import dbshelve +try: + # For Python 2.3 + from bsddb import db, dbshelve +except ImportError: + # For earlier Pythons w/distutils pybsddb + from bsddb3 import db, dbshelve from test.test_support import verbose |