summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/test/test_env_close.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/bsddb/test/test_env_close.py')
-rw-r--r--Lib/bsddb/test/test_env_close.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/bsddb/test/test_env_close.py b/Lib/bsddb/test/test_env_close.py
index 43dcabe..12e1037 100644
--- a/Lib/bsddb/test/test_env_close.py
+++ b/Lib/bsddb/test/test_env_close.py
@@ -33,7 +33,7 @@ else:
class DBEnvClosedEarlyCrash(unittest.TestCase):
def setUp(self):
- 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: pass
tempfile.tempdir = self.homeDir