summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/test/test_dbobj.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2003-01-28 17:20:44 (GMT)
committerBarry Warsaw <barry@python.org>2003-01-28 17:20:44 (GMT)
commitf71de3e9a017d698be8ee4db3e2ec5fbc68bfc8c (patch)
treeb31170225a2c763246014d72e4d5db8b31fc5354 /Lib/bsddb/test/test_dbobj.py
parenta6ae9a2128a85301ded9381c181539720ce82ca0 (diff)
downloadcpython-f71de3e9a017d698be8ee4db3e2ec5fbc68bfc8c.zip
cpython-f71de3e9a017d698be8ee4db3e2ec5fbc68bfc8c.tar.gz
cpython-f71de3e9a017d698be8ee4db3e2ec5fbc68bfc8c.tar.bz2
Everything worked in both the distutils distro and in Python 2.3cvs,
so merge from the bsddb-bsddb3-schizo-branch back to the trunk.
Diffstat (limited to 'Lib/bsddb/test/test_dbobj.py')
-rw-r--r--Lib/bsddb/test/test_dbobj.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/bsddb/test/test_dbobj.py b/Lib/bsddb/test/test_dbobj.py
index 1e1ac27..93ea7ba 100644
--- a/Lib/bsddb/test/test_dbobj.py
+++ b/Lib/bsddb/test/test_dbobj.py
@@ -3,7 +3,12 @@ import sys, os, string
import unittest
import glob
-from bsddb import db, dbobj
+try:
+ # For Python 2.3
+ from bsddb import db, dbobj
+except ImportError:
+ # For earlier Pythons w/distutils pybsddb
+ from bsddb3 import db, dbobj
#----------------------------------------------------------------------