summaryrefslogtreecommitdiffstats
path: root/Lib/dos-8x3/test_bsd.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-04-08 20:27:54 (GMT)
committerGuido van Rossum <guido@python.org>1999-04-08 20:27:54 (GMT)
commit9a744a9dd771ee8997bdebaf47ff999b5adc9733 (patch)
tree5060172f273b17409371c9ad1441b2a8bbc315be /Lib/dos-8x3/test_bsd.py
parent6d0de99d8da806798ce0b896159bd07fce71c0dc (diff)
downloadcpython-9a744a9dd771ee8997bdebaf47ff999b5adc9733.zip
cpython-9a744a9dd771ee8997bdebaf47ff999b5adc9733.tar.gz
cpython-9a744a9dd771ee8997bdebaf47ff999b5adc9733.tar.bz2
The usual
Diffstat (limited to 'Lib/dos-8x3/test_bsd.py')
-rw-r--r--Lib/dos-8x3/test_bsd.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/dos-8x3/test_bsd.py b/Lib/dos-8x3/test_bsd.py
index 1188e06..e5780ea 100644
--- a/Lib/dos-8x3/test_bsd.py
+++ b/Lib/dos-8x3/test_bsd.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])
-