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
819f139c
Kaydet (Commit)
819f139c
authored
Mar 18, 2008
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Try increasing the timeout to reduce the flakiness of this test.
üst
ed414654
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test_smtplib.py
Lib/test/test_smtplib.py
+4
-4
No files found.
Lib/test/test_smtplib.py
Dosyayı görüntüle @
819f139c
...
@@ -348,11 +348,11 @@ class SMTPSimTests(TestCase):
...
@@ -348,11 +348,11 @@ class SMTPSimTests(TestCase):
def
testBasic
(
self
):
def
testBasic
(
self
):
# smoke test
# smoke test
smtp
=
smtplib
.
SMTP
(
HOST
,
PORT
,
local_hostname
=
'localhost'
,
timeout
=
3
)
smtp
=
smtplib
.
SMTP
(
HOST
,
PORT
,
local_hostname
=
'localhost'
,
timeout
=
15
)
smtp
.
quit
()
smtp
.
quit
()
def
testEHLO
(
self
):
def
testEHLO
(
self
):
smtp
=
smtplib
.
SMTP
(
HOST
,
PORT
,
local_hostname
=
'localhost'
,
timeout
=
3
)
smtp
=
smtplib
.
SMTP
(
HOST
,
PORT
,
local_hostname
=
'localhost'
,
timeout
=
15
)
# no features should be present before the EHLO
# no features should be present before the EHLO
self
.
assertEqual
(
smtp
.
esmtp_features
,
{})
self
.
assertEqual
(
smtp
.
esmtp_features
,
{})
...
@@ -373,7 +373,7 @@ class SMTPSimTests(TestCase):
...
@@ -373,7 +373,7 @@ class SMTPSimTests(TestCase):
smtp
.
quit
()
smtp
.
quit
()
def
testVRFY
(
self
):
def
testVRFY
(
self
):
smtp
=
smtplib
.
SMTP
(
HOST
,
PORT
,
local_hostname
=
'localhost'
,
timeout
=
3
)
smtp
=
smtplib
.
SMTP
(
HOST
,
PORT
,
local_hostname
=
'localhost'
,
timeout
=
15
)
for
email
,
name
in
sim_users
.
items
():
for
email
,
name
in
sim_users
.
items
():
expected_known
=
(
250
,
'
%
s
%
s'
%
(
name
,
smtplib
.
quoteaddr
(
email
)))
expected_known
=
(
250
,
'
%
s
%
s'
%
(
name
,
smtplib
.
quoteaddr
(
email
)))
...
@@ -385,7 +385,7 @@ class SMTPSimTests(TestCase):
...
@@ -385,7 +385,7 @@ class SMTPSimTests(TestCase):
smtp
.
quit
()
smtp
.
quit
()
def
testEXPN
(
self
):
def
testEXPN
(
self
):
smtp
=
smtplib
.
SMTP
(
HOST
,
PORT
,
local_hostname
=
'localhost'
,
timeout
=
3
)
smtp
=
smtplib
.
SMTP
(
HOST
,
PORT
,
local_hostname
=
'localhost'
,
timeout
=
15
)
for
listname
,
members
in
sim_lists
.
items
():
for
listname
,
members
in
sim_lists
.
items
():
users
=
[]
users
=
[]
...
...
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