mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
pylightning: make sure UTF-8 gets passed intact.
1. We need to read in as a byte string, then decode into utf8 once we have a marker. Otherwise we seem to mangle it horribly, and we might have a bad utf8 string anyway. 2. We need to suppress the JSON \u escapes on output. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
5f437de771
commit
cc342fda83
@@ -190,7 +190,6 @@ def test_async_rpcmethod(node_factory, executor):
|
||||
assert [r.result() for r in results] == [42] * len(results)
|
||||
|
||||
|
||||
@pytest.mark.xfail(strict=True)
|
||||
def test_utf8_passthrough(node_factory, executor):
|
||||
l1 = node_factory.get_node(options={'plugin': 'tests/plugins/utf8.py',
|
||||
'log-level': 'io'})
|
||||
|
||||
Reference in New Issue
Block a user