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
3b843ccf
Kaydet (Commit)
3b843ccf
authored
Agu 17, 2006
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make unit tests pass: replace apply() and adapt to different attribute message.
üst
512ab9f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
dbapi2.py
Lib/sqlite3/dbapi2.py
+3
-3
userfunctions.py
Lib/sqlite3/test/userfunctions.py
+1
-1
No files found.
Lib/sqlite3/dbapi2.py
Dosyayı görüntüle @
3b843ccf
...
@@ -39,13 +39,13 @@ Time = datetime.time
...
@@ -39,13 +39,13 @@ Time = datetime.time
Timestamp
=
datetime
.
datetime
Timestamp
=
datetime
.
datetime
def
DateFromTicks
(
ticks
):
def
DateFromTicks
(
ticks
):
return
apply
(
Date
,
time
.
localtime
(
ticks
)[:
3
])
return
Date
(
*
time
.
localtime
(
ticks
)[:
3
])
def
TimeFromTicks
(
ticks
):
def
TimeFromTicks
(
ticks
):
return
apply
(
Time
,
time
.
localtime
(
ticks
)[
3
:
6
])
return
Time
(
*
time
.
localtime
(
ticks
)[
3
:
6
])
def
TimestampFromTicks
(
ticks
):
def
TimestampFromTicks
(
ticks
):
return
apply
(
Timestamp
,
time
.
localtime
(
ticks
)[:
6
])
return
Timestamp
(
*
time
.
localtime
(
ticks
)[:
6
])
version_info
=
tuple
([
int
(
x
)
for
x
in
version
.
split
(
"."
)])
version_info
=
tuple
([
int
(
x
)
for
x
in
version
.
split
(
"."
)])
sqlite_version_info
=
tuple
([
int
(
x
)
for
x
in
sqlite_version
.
split
(
"."
)])
sqlite_version_info
=
tuple
([
int
(
x
)
for
x
in
sqlite_version
.
split
(
"."
)])
...
...
Lib/sqlite3/test/userfunctions.py
Dosyayı görüntüle @
3b843ccf
...
@@ -280,7 +280,7 @@ class AggregateTests(unittest.TestCase):
...
@@ -280,7 +280,7 @@ class AggregateTests(unittest.TestCase):
cur
.
execute
(
"select nostep(t) from test"
)
cur
.
execute
(
"select nostep(t) from test"
)
self
.
fail
(
"should have raised an AttributeError"
)
self
.
fail
(
"should have raised an AttributeError"
)
except
AttributeError
,
e
:
except
AttributeError
,
e
:
self
.
failUnlessEqual
(
e
.
args
[
0
],
"
AggrNoStep instance
has no attribute 'step'"
)
self
.
failUnlessEqual
(
e
.
args
[
0
],
"
'AggrNoStep' object
has no attribute 'step'"
)
def
CheckAggrNoFinalize
(
self
):
def
CheckAggrNoFinalize
(
self
):
cur
=
self
.
con
.
cursor
()
cur
=
self
.
con
.
cursor
()
...
...
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