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
e0815e2d
Kaydet (Commit)
e0815e2d
authored
Kas 12, 2011
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Restore smtpd.DEBUGSTREAM at the end of test_smtpd.
This fixes a subsequent refleak in test_smtplib.
üst
bf9d34ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
test_smtpd.py
Lib/test/test_smtpd.py
+2
-0
No files found.
Lib/test/test_smtpd.py
Dosyayı görüntüle @
e0815e2d
...
@@ -52,6 +52,7 @@ class SMTPDServerTest(TestCase):
...
@@ -52,6 +52,7 @@ class SMTPDServerTest(TestCase):
class
SMTPDChannelTest
(
TestCase
):
class
SMTPDChannelTest
(
TestCase
):
def
setUp
(
self
):
def
setUp
(
self
):
smtpd
.
socket
=
asyncore
.
socket
=
mock_socket
smtpd
.
socket
=
asyncore
.
socket
=
mock_socket
self
.
old_debugstream
=
smtpd
.
DEBUGSTREAM
self
.
debug
=
smtpd
.
DEBUGSTREAM
=
io
.
StringIO
()
self
.
debug
=
smtpd
.
DEBUGSTREAM
=
io
.
StringIO
()
self
.
server
=
DummyServer
(
'a'
,
'b'
)
self
.
server
=
DummyServer
(
'a'
,
'b'
)
conn
,
addr
=
self
.
server
.
accept
()
conn
,
addr
=
self
.
server
.
accept
()
...
@@ -60,6 +61,7 @@ class SMTPDChannelTest(TestCase):
...
@@ -60,6 +61,7 @@ class SMTPDChannelTest(TestCase):
def
tearDown
(
self
):
def
tearDown
(
self
):
asyncore
.
close_all
()
asyncore
.
close_all
()
asyncore
.
socket
=
smtpd
.
socket
=
socket
asyncore
.
socket
=
smtpd
.
socket
=
socket
smtpd
.
DEBUGSTREAM
=
self
.
old_debugstream
def
write_line
(
self
,
line
):
def
write_line
(
self
,
line
):
self
.
channel
.
socket
.
queue_recv
(
line
)
self
.
channel
.
socket
.
queue_recv
(
line
)
...
...
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