Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
16f9fd2b
Commit
16f9fd2b
authored
Dec 10, 1996
by
Roger E. Masse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a test script for dbmmodule.c and added it to testall.py and
updated testall.out
parent
3ac30af8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
2 deletions
+31
-2
Lib/test/test_dbm.py
Lib/test/test_dbm.py
+29
-0
Lib/test/testall.out
Lib/test/testall.out
+1
-1
Lib/test/testall.py
Lib/test/testall.py
+1
-1
No files found.
Lib/test/test_dbm.py
0 → 100755
View file @
16f9fd2b
#! /usr/bin/env python
"""Test script for the dbm module
Roger E. Masse
"""
import
dbm
from
dbm
import
error
filename
=
'/tmp/delete_me'
d
=
dbm
.
open
(
filename
,
'c'
)
d
[
'a'
]
=
'b'
d
[
'12345678910'
]
=
'019237410982340912840198242'
d
.
keys
()
d
.
has_key
(
'a'
)
d
.
close
()
d
=
dbm
.
open
(
filename
,
'r'
)
d
.
close
()
d
=
dbm
.
open
(
filename
,
'rw'
)
d
.
close
()
d
=
dbm
.
open
(
filename
,
'w'
)
d
.
close
()
d
=
dbm
.
open
(
filename
,
'n'
)
d
.
close
()
try
:
import
os
os
.
unlink
(
filename
+
'.dir'
)
os
.
unlink
(
filename
+
'.pag'
)
except
:
pass
Lib/test/testall.out
View file @
16f9fd2b
...
...
@@ -179,5 +179,5 @@ MD5 ("12345678901234567890123456789012345678901234567890123456789012345678901234
test_cmath
test_crypt
Test encryption: abeTm2pJKypwA
test_
new
test_
dbm
Passed all tests.
Lib/test/testall.py
View file @
16f9fd2b
...
...
@@ -12,7 +12,7 @@ import test_grammar
for
t
in
[
'test_opcodes'
,
'test_operations'
,
'test_builtin'
,
'test_exceptions'
,
'test_types'
,
'test_math'
,
'test_time'
,
'test_array'
,
'test_strop'
,
'test_md5'
,
'test_cmath'
,
'test_crypt'
,
'test_crypt'
,
'test_dbm'
,
]:
print
t
unload
(
t
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment