Consistently use tempfile.tempdir for the db_home directory.

This commit is contained in:
Neal Norwitz 2008-01-26 23:14:17 +00:00
parent 7f47d93f52
commit 3d785e2c6a
5 changed files with 8 additions and 5 deletions

View file

@ -16,7 +16,7 @@ from test_all import verbose
class DBSequenceTest(unittest.TestCase):
def setUp(self):
self.int_32_max = 0x100000000
self.homeDir = os.path.join(os.path.dirname(sys.argv[0]), 'db_home')
self.homeDir = os.path.join(tempfile.gettempdir(), 'db_home')
try:
os.mkdir(self.homeDir)
except os.error: