forked from pool/python-wsaccel
- 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:
11
fix-encoding.patch
Normal file
11
fix-encoding.patch
Normal 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)
|
Reference in New Issue
Block a user