python-websockify/fix-tests-py3.6.patch

15 lines
502 B
Diff
Raw Normal View History

Index: websockify-0.8.0+dfsg1/tests/test_websocket.py
===================================================================
--- websockify-0.8.0+dfsg1.orig/tests/test_websocket.py
+++ websockify-0.8.0+dfsg1/tests/test_websocket.py
@@ -69,6 +69,9 @@ class FakeSocket(object):
else:
return StringIO(self._data.decode('latin_1'))
+ def sendall(self, data, flags=None):
+ return len(data)
+
class WebSocketRequestHandlerTestCase(unittest.TestCase):
def setUp(self):