summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/test/test_env_close.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/bsddb/test/test_env_close.py')
-rw-r--r--Lib/bsddb/test/test_env_close.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/bsddb/test/test_env_close.py b/Lib/bsddb/test/test_env_close.py
index 0b46ee3..105be44 100644
--- a/Lib/bsddb/test/test_env_close.py
+++ b/Lib/bsddb/test/test_env_close.py
@@ -8,7 +8,12 @@ import tempfile
import glob
import unittest
-from bsddb import db
+try:
+ # For Python 2.3
+ from bsddb import db
+except ImportError:
+ # For earlier Pythons w/distutils pybsddb
+ from bsddb3 import db
from test_all import verbose