Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
443be431
Commit
443be431
authored
Jan 28, 2013
by
Mukund Sivaraman
Browse files
Merge branch 'trac2623'
parents
8f2bbf55
8a33bc3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/msgq/tests/msgq_test.py
View file @
443be431
...
...
@@ -454,9 +454,8 @@ class SendNonblock(unittest.TestCase):
Two tests are done: one where the error is raised on the 3rd octet,
and one on the 23rd.
"""
sockerr
=
socket
.
error
for
err
in
[
errno
.
EAGAIN
,
errno
.
EWOULDBLOCK
,
errno
.
EINTR
]:
sockerr
.
errno
=
err
sockerr
=
socket
.
error
(
err
,
'Socket error'
)
self
.
do_send_with_send_error
(
3
,
sockerr
)
self
.
do_send_with_send_error
(
23
,
sockerr
)
...
...
@@ -467,9 +466,8 @@ class SendNonblock(unittest.TestCase):
Two tests are done: one where the error is raised on the 3rd octet,
and one on the 23rd.
"""
sockerr
=
socket
.
error
for
err
in
[
errno
.
EPIPE
,
errno
.
ENOBUFS
,
errno
.
ECONNRESET
]:
sockerr
.
errno
=
err
sockerr
=
socket
.
error
(
err
,
'Socket error'
)
self
.
do_send_with_send_error
(
3
,
sockerr
,
False
)
self
.
do_send_with_send_error
(
23
,
sockerr
,
False
)
...
...
Write
Preview
Supports
Markdown
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