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
31c5dd6b
Kaydet (Commit)
31c5dd6b
authored
Ock 11, 2011
tarafından
Alexander Belopolsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make mktime test more robust.
üst
b7d40d17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
test_time.py
Lib/test/test_time.py
+7
-3
No files found.
Lib/test/test_time.py
Dosyayı görüntüle @
31c5dd6b
...
@@ -348,9 +348,13 @@ class _Test4dYear(_BaseYearTest):
...
@@ -348,9 +348,13 @@ class _Test4dYear(_BaseYearTest):
except
(
OverflowError
,
ValueError
):
except
(
OverflowError
,
ValueError
):
pass
pass
self
.
assertEqual
(
time
.
mktime
(
tt
),
t
)
self
.
assertEqual
(
time
.
mktime
(
tt
),
t
)
# Hopefully year = -1 is enough to make OS mktime fail
# It may not be possible to reliably make mktime return error
self
.
assertRaises
(
OverflowError
,
time
.
mktime
,
# on all platfom. This will make sure that no other exception
(
-
1
,
1
,
1
,
0
,
0
,
0
,
-
1
,
-
1
,
-
1
))
# than OverflowError is raised for an extreme value.
try
:
time
.
mktime
((
-
1
,
1
,
1
,
0
,
0
,
0
,
-
1
,
-
1
,
-
1
))
except
OverflowError
:
pass
class
TestAsctimeAccept2dYear
(
_TestAsctimeYear
,
_Test2dYear
):
class
TestAsctimeAccept2dYear
(
_TestAsctimeYear
,
_Test2dYear
):
pass
pass
...
...
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