forked from pool/python-websockify
- Execute tests
- 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
This commit is contained in:
committed by
Git OBS Bridge
parent
bd0a54897f
commit
63bbab0f72
14
fix-tests-py3.6.patch
Normal file
14
fix-tests-py3.6.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
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):
|
||||
Reference in New Issue
Block a user