Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
16f9fd2b
Kaydet (Commit)
16f9fd2b
authored
Ara 10, 1996
tarafından
Roger E. Masse
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added a test script for dbmmodule.c and added it to testall.py and
updated testall.out
üst
3ac30af8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
2 deletions
+31
-2
test_dbm.py
Lib/test/test_dbm.py
+29
-0
testall.out
Lib/test/testall.out
+1
-1
testall.py
Lib/test/testall.py
+1
-1
No files found.
Lib/test/test_dbm.py
0 → 100755
Dosyayı görüntüle @
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
Dosyayı görüntüle @
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
Dosyayı görüntüle @
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