diff options
| author | Gregory P. Smith <greg@mad-scientist.com> | 2008-03-02 20:00:53 (GMT) |
|---|---|---|
| committer | Gregory P. Smith <greg@mad-scientist.com> | 2008-03-02 20:00:53 (GMT) |
| commit | 492e2bfefa3c534ab7cbe9f497509bcbcfec6eb9 (patch) | |
| tree | 9fa5bc0afa3bc70eecf1fafb1ba3fcfe2d61277c /Lib/bsddb/test/test_dbtables.py | |
| parent | e6dab2a07740ffdeef570919c6b98004df29408e (diff) | |
| download | cpython-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_dbtables.py')
| -rw-r--r-- | Lib/bsddb/test/test_dbtables.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/bsddb/test/test_dbtables.py b/Lib/bsddb/test/test_dbtables.py index 7acfdd1..46602ce 100644 --- a/Lib/bsddb/test/test_dbtables.py +++ b/Lib/bsddb/test/test_dbtables.py @@ -39,6 +39,10 @@ except ImportError: # For Python 2.3 from bsddb import db, dbtables +try: + from bsddb3 import test_support +except ImportError: + from test import test_support #---------------------------------------------------------------------- @@ -57,7 +61,6 @@ class TableDBTestCase(unittest.TestCase): def tearDown(self): self.tdb.close() - from test import test_support test_support.rmtree(self.testHomeDir) def test01(self): |
