mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
The usual
This commit is contained in:
parent
6d0de99d8d
commit
9a744a9dd7
17 changed files with 476 additions and 94 deletions
|
@ -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])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue