14
0

- Fix encoding tests fix-encoding.patch

- Initial commit, needed by autobahn

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wsaccel?expand=0&rev=1
This commit is contained in:
Tomáš Chvátal
2019-03-26 11:19:46 +00:00
committed by Git OBS Bridge
commit d91f4f4e28
7 changed files with 124 additions and 0 deletions

11
fix-encoding.patch Normal file
View File

@@ -0,0 +1,11 @@
Index: wsaccel-0.6.2/tests/test_4.py
===================================================================
--- wsaccel-0.6.2.orig/tests/test_4.py
+++ wsaccel-0.6.2/tests/test_4.py
@@ -3,5 +3,5 @@ import wsaccel.utf8validator
def test_validate():
v = wsaccel.utf8validator.Utf8Validator()
- x = "Hello-µ@ßöäüàá-UTF-8!!" # taken from case 6.2.1
+ x = "Hello-µ@ßöäüàá-UTF-8!!".encode('utf-8') # taken from case 6.2.1
assert v.validate(x) == (True, True, 29, 29)