mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
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.
This commit is contained in:
parent
e6dab2a077
commit
492e2bfefa
15 changed files with 73 additions and 15 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue