Skip to content

Commit d1e39c0

Browse files
committed
clarifying types
1 parent fbb48de commit d1e39c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/test_websocket.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_terminate_with_closing(self):
6464
self.assertTrue(ws.client_terminated)
6565
self.assertTrue(ws.server_terminated)
6666
self.assertTrue(ws.terminated)
67-
c.assert_called_once_with(1000, 'test closing')
67+
c.assert_called_once_with(1000, b'test closing')
6868
cc.assert_called_once_with()
6969
self.assertIsNone(ws.stream)
7070
self.assertIsNone(ws.environ)
@@ -167,7 +167,7 @@ def test_closing_message_received(self):
167167
ws.stream = s
168168
ws.stream.closing = CloseControlMessage(code=1000, reason='test closing')
169169
ws.process(b'unused for this test')
170-
c.assert_called_once_with(1000, 'test closing')
170+
c.assert_called_once_with(1000, b'test closing')
171171

172172

173173
if __name__ == '__main__':

0 commit comments

Comments
 (0)