diff options
author | Guido van Rossum <guido@python.org> | 2006-08-25 23:40:32 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2006-08-25 23:40:32 (GMT) |
commit | f35ad33064fb81de3ea4499285d2748c8e5629f1 (patch) | |
tree | 6bff581ac5d3e0b1879e1c88262e816b504efec2 /Lib/test/test_dbm.py | |
parent | b65fb33b022de9fefc8af76339f645c16614e2eb (diff) | |
download | cpython-f35ad33064fb81de3ea4499285d2748c8e5629f1.zip cpython-f35ad33064fb81de3ea4499285d2748c8e5629f1.tar.gz cpython-f35ad33064fb81de3ea4499285d2748c8e5629f1.tar.bz2 |
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_dbm.py')
-rwxr-xr-x | Lib/test/test_dbm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_dbm.py b/Lib/test/test_dbm.py index 8fdd262..ed92bfe 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']: |