Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b912c5a0
Commit
b912c5a0
authored
May 02, 2011
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I was right, hardconding the localhost IP doesn't work in linux-vserver.
parent
38cfe896
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
Lib/test/test_smtplib.py
Lib/test/test_smtplib.py
+3
-6
No files found.
Lib/test/test_smtplib.py
View file @
b912c5a0
...
...
@@ -290,8 +290,7 @@ class DebuggingServerTests(unittest.TestCase):
self
.
serv_evt
.
wait
()
self
.
output
.
flush
()
# Add the X-Peer header that DebuggingServer adds
# XXX: I'm not sure hardcoding this IP will work on linux-vserver.
m
[
'X-Peer'
]
=
'127.0.0.1'
m
[
'X-Peer'
]
=
socket
.
gethostbyname
(
'localhost'
)
mexpect
=
'%s%s
\
n
%s'
%
(
MSG_BEGIN
,
m
.
as_string
(),
MSG_END
)
self
.
assertEqual
(
self
.
output
.
getvalue
(),
mexpect
)
...
...
@@ -311,8 +310,7 @@ class DebuggingServerTests(unittest.TestCase):
self
.
serv_evt
.
wait
()
self
.
output
.
flush
()
# Add the X-Peer header that DebuggingServer adds
# XXX: I'm not sure hardcoding this IP will work on linux-vserver.
m
[
'X-Peer'
]
=
'127.0.0.1'
m
[
'X-Peer'
]
=
socket
.
gethostbyname
(
'localhost'
)
# The Bcc header is deleted before serialization.
del
m
[
'Bcc'
]
mexpect
=
'%s%s
\
n
%s'
%
(
MSG_BEGIN
,
m
.
as_string
(),
MSG_END
)
...
...
@@ -341,8 +339,7 @@ class DebuggingServerTests(unittest.TestCase):
self
.
serv_evt
.
wait
()
self
.
output
.
flush
()
# Add the X-Peer header that DebuggingServer adds
# XXX: I'm not sure hardcoding this IP will work on linux-vserver.
m
[
'X-Peer'
]
=
'127.0.0.1'
m
[
'X-Peer'
]
=
socket
.
gethostbyname
(
'localhost'
)
mexpect
=
'%s%s
\
n
%s'
%
(
MSG_BEGIN
,
m
.
as_string
(),
MSG_END
)
self
.
assertEqual
(
self
.
output
.
getvalue
(),
mexpect
)
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