summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dbm.py
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2007-02-25 22:15:04 (GMT)
committerThomas Wouters <thomas@python.org>2007-02-25 22:15:04 (GMT)
commit25e7cfa4b9aec196047de80bcd28bff8f3f0dd43 (patch)
tree81d1bb335ef09e20ed7559232a5471b2e80fc8e6 /Lib/test/test_dbm.py
parenta5f5f147834419c9c2c76b468c16d83f68fc1102 (diff)
downloadcpython-25e7cfa4b9aec196047de80bcd28bff8f3f0dd43.zip
cpython-25e7cfa4b9aec196047de80bcd28bff8f3f0dd43.tar.gz
cpython-25e7cfa4b9aec196047de80bcd28bff8f3f0dd43.tar.bz2
Backported r51621 from p3yk:
Don't use a fixed temporary name (gdbm). Don't use our own temp name creation (dbm).
Diffstat (limited to 'Lib/test/test_dbm.py')
-rwxr-xr-xLib/test/test_dbm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_dbm.py b/Lib/test/test_dbm.py
index e5757c9..b93e72e 100755
--- a/Lib/test/test_dbm.py
+++ b/Lib/test/test_dbm.py
@@ -6,11 +6,11 @@ import os
import random
import dbm
from dbm import error
-from test.test_support import verbose, verify, TestSkipped
+from test.test_support import verbose, verify, TestSkipped, TESTFN
# make filename unique to allow multiple concurrent tests
# and to minimize the likelihood of a problem from an old file
-filename = '/tmp/delete_me_' + str(random.random())[-6:]
+filename = TESTFN
def cleanup():
for suffix in ['', '.pag', '.dir', '.db']: