Skip to content

Commit

Permalink
Merge pull request #51 from claws/fix_test_failing_on_osx
Browse files Browse the repository at this point in the history
fix failing test on OSX
  • Loading branch information
asvetlov committed Jun 30, 2015
2 parents 5e97e11 + bb9d11a commit 89892a0
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions tests/zmq_events_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,12 +737,17 @@ def test_close_on_error(self):
tr1.write([b'data'])
self.assertTrue(tr1._closing)
handler.assert_called_with(
self.loop,
{'protocol': pr1,
'exception': mock.ANY,
'transport': tr1,
'message': 'Fatal write error on zmq socket transport'})
check_errno(88, handler.call_args[0][1]['exception'])
self.loop,
{'protocol': pr1,
'exception': mock.ANY,
'transport': tr1,
'message': 'Fatal write error on zmq socket transport'})
# expecting 'Socket operation on non-socket'
if sys.platform == 'darwin':
errno = 38
else:
errno = 88
check_errno(errno, handler.call_args[0][1]['exception'])

def test_double_force_close(self):
port = find_unused_port()
Expand Down

0 comments on commit 89892a0

Please sign in to comment.