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
477a6eb4
Kaydet (Commit)
477a6eb4
authored
May 02, 2011
tarafından
R David Murray
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge: I was right, hardconding the localhost IP doesn't work in linux-vserver.
üst
2265cf4c
b912c5a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
test_smtplib.py
Lib/test/test_smtplib.py
+3
-6
No files found.
Lib/test/test_smtplib.py
Dosyayı görüntüle @
477a6eb4
...
@@ -290,8 +290,7 @@ class DebuggingServerTests(unittest.TestCase):
...
@@ -290,8 +290,7 @@ class DebuggingServerTests(unittest.TestCase):
self
.
serv_evt
.
wait
()
self
.
serv_evt
.
wait
()
self
.
output
.
flush
()
self
.
output
.
flush
()
# Add the X-Peer header that DebuggingServer adds
# Add the X-Peer header that DebuggingServer adds
# XXX: I'm not sure hardcoding this IP will work on linux-vserver.
m
[
'X-Peer'
]
=
socket
.
gethostbyname
(
'localhost'
)
m
[
'X-Peer'
]
=
'127.0.0.1'
mexpect
=
'
%
s
%
s
\n
%
s'
%
(
MSG_BEGIN
,
m
.
as_string
(),
MSG_END
)
mexpect
=
'
%
s
%
s
\n
%
s'
%
(
MSG_BEGIN
,
m
.
as_string
(),
MSG_END
)
self
.
assertEqual
(
self
.
output
.
getvalue
(),
mexpect
)
self
.
assertEqual
(
self
.
output
.
getvalue
(),
mexpect
)
...
@@ -311,8 +310,7 @@ class DebuggingServerTests(unittest.TestCase):
...
@@ -311,8 +310,7 @@ class DebuggingServerTests(unittest.TestCase):
self
.
serv_evt
.
wait
()
self
.
serv_evt
.
wait
()
self
.
output
.
flush
()
self
.
output
.
flush
()
# Add the X-Peer header that DebuggingServer adds
# Add the X-Peer header that DebuggingServer adds
# XXX: I'm not sure hardcoding this IP will work on linux-vserver.
m
[
'X-Peer'
]
=
socket
.
gethostbyname
(
'localhost'
)
m
[
'X-Peer'
]
=
'127.0.0.1'
# The Bcc header is deleted before serialization.
# The Bcc header is deleted before serialization.
del
m
[
'Bcc'
]
del
m
[
'Bcc'
]
mexpect
=
'
%
s
%
s
\n
%
s'
%
(
MSG_BEGIN
,
m
.
as_string
(),
MSG_END
)
mexpect
=
'
%
s
%
s
\n
%
s'
%
(
MSG_BEGIN
,
m
.
as_string
(),
MSG_END
)
...
@@ -341,8 +339,7 @@ class DebuggingServerTests(unittest.TestCase):
...
@@ -341,8 +339,7 @@ class DebuggingServerTests(unittest.TestCase):
self
.
serv_evt
.
wait
()
self
.
serv_evt
.
wait
()
self
.
output
.
flush
()
self
.
output
.
flush
()
# Add the X-Peer header that DebuggingServer adds
# Add the X-Peer header that DebuggingServer adds
# XXX: I'm not sure hardcoding this IP will work on linux-vserver.
m
[
'X-Peer'
]
=
socket
.
gethostbyname
(
'localhost'
)
m
[
'X-Peer'
]
=
'127.0.0.1'
mexpect
=
'
%
s
%
s
\n
%
s'
%
(
MSG_BEGIN
,
m
.
as_string
(),
MSG_END
)
mexpect
=
'
%
s
%
s
\n
%
s'
%
(
MSG_BEGIN
,
m
.
as_string
(),
MSG_END
)
self
.
assertEqual
(
self
.
output
.
getvalue
(),
mexpect
)
self
.
assertEqual
(
self
.
output
.
getvalue
(),
mexpect
)
debugout
=
smtpd
.
DEBUGSTREAM
.
getvalue
()
debugout
=
smtpd
.
DEBUGSTREAM
.
getvalue
()
...
...
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