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
14f0bc79
Kaydet (Commit)
14f0bc79
authored
Mar 26, 2008
tarafından
Jerry Seutter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Changed test so it no longer runs as a side effect of importing.
üst
85fc3c1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
7 deletions
+20
-7
test_imaplib.py
Lib/test/test_imaplib.py
+20
-7
No files found.
Lib/test/test_imaplib.py
Dosyayı görüntüle @
14f0bc79
import
imaplib
import
time
# We can check only that it successfully produces a result,
# not the correctness of the result itself, since the result
# depends on the timezone the machine is in.
from
test
import
test_support
import
unittest
timevalues
=
[
2000000000
,
2000000000.0
,
time
.
localtime
(
2000000000
),
'"18-May-2033 05:33:20 +0200"'
]
for
t
in
timevalues
:
imaplib
.
Time2Internaldate
(
t
)
class
TestImaplib
(
unittest
.
TestCase
):
def
test_that_Time2Internaldate_returns_a_result
(
self
):
# We can check only that it successfully produces a result,
# not the correctness of the result itself, since the result
# depends on the timezone the machine is in.
timevalues
=
[
2000000000
,
2000000000.0
,
time
.
localtime
(
2000000000
),
'"18-May-2033 05:33:20 +0200"'
]
for
t
in
timevalues
:
imaplib
.
Time2Internaldate
(
t
)
def
test_main
():
test_support
.
run_unittest
(
TestImaplib
)
if
__name__
==
"__main__"
:
unittest
.
main
()
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