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
d094efd8
Kaydet (Commit)
d094efd8
authored
Eki 31, 2010
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cleanup resources in test_smtplib #10264
üst
076ed000
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
test_smtplib.py
Lib/test/test_smtplib.py
+3
-0
No files found.
Lib/test/test_smtplib.py
Dosyayı görüntüle @
d094efd8
...
...
@@ -487,6 +487,7 @@ class SMTPSimTests(unittest.TestCase):
expected_auth_ok
=
(
235
,
b
'plain auth ok'
)
self
.
assertEqual
(
smtp
.
login
(
sim_auth
[
0
],
sim_auth
[
1
]),
expected_auth_ok
)
smtp
.
close
()
# SimSMTPChannel doesn't fully support LOGIN or CRAM-MD5 auth because they
# require a synchronous read to obtain the credentials...so instead smtpd
...
...
@@ -503,6 +504,7 @@ class SMTPSimTests(unittest.TestCase):
except
smtplib
.
SMTPAuthenticationError
as
err
:
if
sim_auth_login_password
not
in
str
(
err
):
raise
"expected encoded password not found in error message"
smtp
.
close
()
def
testAUTH_CRAM_MD5
(
self
):
self
.
serv
.
add_feature
(
"AUTH CRAM-MD5"
)
...
...
@@ -512,6 +514,7 @@ class SMTPSimTests(unittest.TestCase):
except
smtplib
.
SMTPAuthenticationError
as
err
:
if
sim_auth_credentials
[
'cram-md5'
]
not
in
str
(
err
):
raise
"expected encoded credentials not found in error message"
smtp
.
close
()
#TODO: add tests for correct AUTH method fallback now that the
#test infrastructure can support it.
...
...
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