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
0b095bc092
commit
aad6761cce
56 changed files with 5040 additions and 656 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
import gdbm
|
||||
from gdbm import error
|
||||
from test_support import verbose
|
||||
from test_support import verbose, TestFailed
|
||||
|
||||
filename= '/tmp/delete_me'
|
||||
|
||||
|
@ -18,6 +18,12 @@ if verbose:
|
|||
|
||||
g.has_key('a')
|
||||
g.close()
|
||||
try:
|
||||
g['a']
|
||||
except error:
|
||||
pass
|
||||
else:
|
||||
raise TestFailed, "expected gdbm.error accessing closed database"
|
||||
g = gdbm.open(filename, 'r')
|
||||
g.close()
|
||||
g = gdbm.open(filename, 'rw')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue