diff options
Diffstat (limited to 'Lib/bsddb/test/test_compat.py')
-rw-r--r-- | Lib/bsddb/test/test_compat.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/bsddb/test/test_compat.py b/Lib/bsddb/test/test_compat.py index 645cbd7..12464ca 100644 --- a/Lib/bsddb/test/test_compat.py +++ b/Lib/bsddb/test/test_compat.py @@ -10,11 +10,11 @@ import tempfile from test_all import verbose try: + # For Pythons w/distutils pybsddb + from bsddb3 import db, hashopen, btopen, rnopen +except ImportError: # For Python 2.3 from bsddb import db, hashopen, btopen, rnopen -except ImportError: - # For earlier Pythons w/distutils pybsddb - from bsddb3 import db, hashopen, btopen, rnopen class CompatibilityTestCase(unittest.TestCase): |