Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
95ee4570
Commit
95ee4570
authored
Aug 21, 2013
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix failure of testSockName on travis
error was: gaierror: [Errno -2] Name or service not known
parent
fecf633d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
greentest/2.5/test_socket.py
greentest/2.5/test_socket.py
+5
-1
greentest/2.6/test_socket.py
greentest/2.6/test_socket.py
+5
-1
No files found.
greentest/2.5/test_socket.py
View file @
95ee4570
...
...
@@ -453,7 +453,11 @@ class GeneralModuleTests(unittest.TestCase):
# XXX(nnorwitz): http://tinyurl.com/os5jz seems to indicate
# it reasonable to get the host's addr in addition to 0.0.0.0.
# At least for eCos. This is required for the S/390 to pass.
try
:
my_ip_addr
=
socket
.
gethostbyname
(
socket
.
gethostname
())
except
socket
.
error
:
# Probably name lookup wasn't set up right; skip this test
return
self
.
assert_
(
name
[
0
]
in
(
"0.0.0.0"
,
my_ip_addr
),
'%s invalid'
%
name
[
0
])
self
.
assertEqual
(
name
[
1
],
PORT
+
1
)
...
...
greentest/2.6/test_socket.py
View file @
95ee4570
...
...
@@ -480,7 +480,11 @@ class GeneralModuleTests(unittest.TestCase):
# XXX(nnorwitz): http://tinyurl.com/os5jz seems to indicate
# it reasonable to get the host's addr in addition to 0.0.0.0.
# At least for eCos. This is required for the S/390 to pass.
try
:
my_ip_addr
=
socket
.
gethostbyname
(
socket
.
gethostname
())
except
socket
.
error
:
# Probably name lookup wasn't set up right; skip this test
return
self
.
assert_
(
name
[
0
]
in
(
"0.0.0.0"
,
my_ip_addr
),
'%s invalid'
%
name
[
0
])
self
.
assertEqual
(
name
[
1
],
port
)
...
...
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