mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Consistently use tempfile.tempdir for the db_home directory.
This commit is contained in:
parent
7f47d93f52
commit
3d785e2c6a
5 changed files with 8 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue