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
a64072f9
Kaydet (Commit)
a64072f9
authored
Eyl 03, 2008
tarafından
Jesus Cea
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Python3.0 bsddb testsuite compatibility improvements
üst
2ab34442
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
test_all.py
Lib/bsddb/test/test_all.py
+4
-0
test_bsddb3.py
Lib/test/test_bsddb3.py
+7
-3
bsddb.h
Modules/bsddb.h
+1
-1
No files found.
Lib/bsddb/test/test_all.py
Dosyayı görüntüle @
a64072f9
...
...
@@ -67,6 +67,10 @@ if sys.version_info[0] >= 3 :
v
=
self
.
_dbcursor
.
next_dup
()
return
self
.
_fix
(
v
)
def
next_nodup
(
self
)
:
v
=
self
.
_dbcursor
.
next_nodup
()
return
self
.
_fix
(
v
)
def
put
(
self
,
key
,
value
,
flags
=
0
,
dlen
=-
1
,
doff
=-
1
)
:
if
isinstance
(
key
,
str
)
:
key
=
bytes
(
key
,
charset
)
...
...
Lib/test/test_bsddb3.py
Dosyayı görüntüle @
a64072f9
...
...
@@ -11,9 +11,6 @@ from test.support import requires, verbose, run_unittest, unlink, rmtree
# When running as a script instead of within the regrtest framework, skip the
# requires test, since it's obvious we want to run them.
if
__name__
!=
'__main__'
:
requires
(
'bsddb'
)
verbose
=
False
if
'verbose'
in
sys
.
argv
:
verbose
=
True
...
...
@@ -52,6 +49,10 @@ class TimingCheck(unittest.TestCase):
def
test_main
():
from
bsddb
import
db
from
bsddb.test
import
test_all
# This must be improved...
test_all
.
do_proxy_db_py3k
(
True
)
test_all
.
set_test_path_prefix
(
os
.
path
.
join
(
tempfile
.
gettempdir
(),
'z-test_bsddb3-
%
s'
%
os
.
getpid
()))
...
...
@@ -73,6 +74,9 @@ def test_main():
except
:
pass
# This must be improved...
test_all
.
do_proxy_db_py3k
(
False
)
if
__name__
==
'__main__'
:
test_main
()
Modules/bsddb.h
Dosyayı görüntüle @
a64072f9
...
...
@@ -105,7 +105,7 @@
#error "eek! DBVER can't handle minor versions > 9"
#endif
#define PY_BSDDB_VERSION "4.7.3pre
4
"
#define PY_BSDDB_VERSION "4.7.3pre
5
"
/* Python object definitions */
...
...
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