summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/test/test_cursor_pget_bug.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-01-26 23:14:17 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2008-01-26 23:14:17 (GMT)
commit3d785e2c6a0ceeb83747cf46b509cd1c81e689ca (patch)
tree4afd2730cacabc2f2ff3d39e439b87adc82ea797 /Lib/bsddb/test/test_cursor_pget_bug.py
parent7f47d93f52008e38ed09e379e1a3631dce35874f (diff)
downloadcpython-3d785e2c6a0ceeb83747cf46b509cd1c81e689ca.zip
cpython-3d785e2c6a0ceeb83747cf46b509cd1c81e689ca.tar.gz
cpython-3d785e2c6a0ceeb83747cf46b509cd1c81e689ca.tar.bz2
Consistently use tempfile.tempdir for the db_home directory.
Diffstat (limited to 'Lib/bsddb/test/test_cursor_pget_bug.py')
-rw-r--r--Lib/bsddb/test/test_cursor_pget_bug.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/bsddb/test/test_cursor_pget_bug.py b/Lib/bsddb/test/test_cursor_pget_bug.py
index de47e6d..2f72b11 100644
--- a/Lib/bsddb/test/test_cursor_pget_bug.py
+++ b/Lib/bsddb/test/test_cursor_pget_bug.py
@@ -1,4 +1,5 @@
import unittest
+import tempfile
import sys, os, glob
try:
@@ -16,7 +17,7 @@ class pget_bugTestCase(unittest.TestCase):
db_name = 'test-cursor_pget.db'
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: