- Switch to github tarball to get tests - Add patch to fix tests on python 3.6+: * fix-tests-py3.6.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockify?expand=0&rev=34
15 lines
502 B
Diff
15 lines
502 B
Diff
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):
|