Browse Source

fix python 2 unit test

pull/269/head
Miguel Grinberg 6 years ago
parent
commit
9ddc860391
No known key found for this signature in database GPG Key ID: 36848B262DF5F06C
  1. 2
      tests/common/test_server.py

2
tests/common/test_server.py

@ -294,7 +294,7 @@ class TestServer(unittest.TestCase):
mgr = mock.MagicMock()
s = server.Server(client_manager=mgr)
handler = mock.MagicMock(
side_effect=exceptions.ConnectionRefusedError('fail_reason'))
side_effect=exceptions.ConnectionRefusedError(u'fail_reason'))
s.on('connect', handler, namespace='/foo')
s._handle_eio_connect('123', 'environ')
s._handle_eio_message('123', '0/foo')

Loading…
Cancel
Save