summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/test/test_sequence.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2008-03-02 20:00:53 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2008-03-02 20:00:53 (GMT)
commit492e2bfefa3c534ab7cbe9f497509bcbcfec6eb9 (patch)
tree9fa5bc0afa3bc70eecf1fafb1ba3fcfe2d61277c /Lib/bsddb/test/test_sequence.py
parente6dab2a07740ffdeef570919c6b98004df29408e (diff)
downloadcpython-492e2bfefa3c534ab7cbe9f497509bcbcfec6eb9.zip
cpython-492e2bfefa3c534ab7cbe9f497509bcbcfec6eb9.tar.gz
cpython-492e2bfefa3c534ab7cbe9f497509bcbcfec6eb9.tar.bz2
Modify import of test_support so that the code can also be used with a
stand alone distribution of bsddb that includes its own small copy of test_support for the needed functionality on older pythons.
Diffstat (limited to 'Lib/bsddb/test/test_sequence.py')
-rw-r--r--Lib/bsddb/test/test_sequence.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/bsddb/test/test_sequence.py b/Lib/bsddb/test/test_sequence.py
index 86c58b0..ff94b76 100644
--- a/Lib/bsddb/test/test_sequence.py
+++ b/Lib/bsddb/test/test_sequence.py
@@ -8,6 +8,11 @@ try:
except ImportError:
from bsddb import db
+try:
+ from bsddb3 import test_support
+except ImportError:
+ from test import test_support
+
class DBSequenceTest(unittest.TestCase):
def setUp(self):
@@ -37,7 +42,6 @@ class DBSequenceTest(unittest.TestCase):
self.dbenv.close()
del self.dbenv
- from test import test_support
test_support.rmtree(self.homeDir)
def test_get(self):