summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-03-24 19:03:01 (GMT)
committerGuido van Rossum <guido@python.org>1999-03-24 19:03:01 (GMT)
commit4ec26987256c742c6f8ae0b25d85a5da699d766c (patch)
tree17e587396cf4743fcb6a06c53fb6cc4643fed0bf /Lib
parentd023a78f59d20faddc787468bd1525085cb28d35 (diff)
downloadcpython-4ec26987256c742c6f8ae0b25d85a5da699d766c.zip
cpython-4ec26987256c742c6f8ae0b25d85a5da699d766c.tar.gz
cpython-4ec26987256c742c6f8ae0b25d85a5da699d766c.tar.bz2
Remove the temp file when we're done.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/test/test_bsddb.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/test_bsddb.py b/Lib/test/test_bsddb.py
index 1188e06..e5780ea 100755
--- a/Lib/test/test_bsddb.py
+++ b/Lib/test/test_bsddb.py
@@ -2,6 +2,8 @@
"""Test script for the bsddb C module
Roger E. Masse
"""
+
+import os
import bsddb
import tempfile
from test_support import verbose
@@ -56,6 +58,10 @@ def test(openmethod, what):
print word
f.close()
+ try:
+ os.remove(fname)
+ except os.error:
+ pass
types = [(bsddb.btopen, 'BTree'),
(bsddb.hashopen, 'Hash Table'),
@@ -66,4 +72,3 @@ types = [(bsddb.btopen, 'BTree'),
for type in types:
test(type[0], type[1])
-