mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Don't use a fixed temporary name (gdbm).
Don't use our own temp name creation (dbm). Should be backported to 2.5.
This commit is contained in:
parent
b65fb33b02
commit
f35ad33064
2 changed files with 4 additions and 4 deletions
|
@ -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']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue