diff options
author | Guido van Rossum <guido@python.org> | 2002-08-09 16:38:32 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-08-09 16:38:32 (GMT) |
commit | 3b0a3293c369f3c3f4753e3cb9172cb4e242af76 (patch) | |
tree | e0f9d295c0a2897ddfb7a5bf3b076be70f1492b4 /Lib/test/test_bsddb.py | |
parent | 830a5151c1e2ed4d0c647efb4ad54a9a6c67e4ae (diff) | |
download | cpython-3b0a3293c369f3c3f4753e3cb9172cb4e242af76.zip cpython-3b0a3293c369f3c3f4753e3cb9172cb4e242af76.tar.gz cpython-3b0a3293c369f3c3f4753e3cb9172cb4e242af76.tar.bz2 |
Massive changes from SF 589982 (tempfile.py rewrite, by Zack
Weinberg). This changes all uses of deprecated tempfile functions to
the recommended ones.
Diffstat (limited to 'Lib/test/test_bsddb.py')
-rwxr-xr-x | Lib/test/test_bsddb.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_bsddb.py b/Lib/test/test_bsddb.py index 5cd3958..aa58ef8 100755 --- a/Lib/test/test_bsddb.py +++ b/Lib/test/test_bsddb.py @@ -5,8 +5,7 @@ import os import bsddb import dbhash # Just so we know it's imported -import tempfile -from test.test_support import verbose, verify +from test.test_support import verbose, verify, TESTFN def test(openmethod, what, ondisk=1): @@ -14,7 +13,7 @@ def test(openmethod, what, ondisk=1): print '\nTesting: ', what, (ondisk and "on disk" or "in memory") if ondisk: - fname = tempfile.mktemp() + fname = TESTFN else: fname = None f = openmethod(fname, 'c') |