summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_gdbm.py
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2007-02-25 22:12:31 (GMT)
committerThomas Wouters <thomas@python.org>2007-02-25 22:12:31 (GMT)
commit110054c0535dd8291cef0fe9b473bf1e819b2ef6 (patch)
treeb38cda3d781f9a7ec9b1b7c93f5c84bfcff1b4ba /Lib/test/test_gdbm.py
parentee3a1b5244e60566c5d5c8f6a1ea4b381de99f1c (diff)
downloadcpython-110054c0535dd8291cef0fe9b473bf1e819b2ef6.zip
cpython-110054c0535dd8291cef0fe9b473bf1e819b2ef6.tar.gz
cpython-110054c0535dd8291cef0fe9b473bf1e819b2ef6.tar.bz2
Backported r51621 from p3yk:
Don't use a fixed temporary name (gdbm). Don't use our own temp name creation (dbm). Should be backported to 2.5.
Diffstat (limited to 'Lib/test/test_gdbm.py')
-rwxr-xr-xLib/test/test_gdbm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_gdbm.py b/Lib/test/test_gdbm.py
index 03a47d9..8e6f76f 100755
--- a/Lib/test/test_gdbm.py
+++ b/Lib/test/test_gdbm.py
@@ -5,9 +5,9 @@
import gdbm
from gdbm import error
-from test.test_support import verbose, verify, TestFailed
+from test.test_support import verbose, verify, TestFailed, TESTFN
-filename= '/tmp/delete_me'
+filename = TESTFN
g = gdbm.open(filename, 'c')
verify(g.keys() == [])