From eb66621544409646ef5ff08031fba6e17f9d8218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=2E=20K=C3=A4rkk=C3=A4inen?= Date: Wed, 4 Mar 2020 13:21:49 +0200 Subject: [PATCH] json takes str, not bytes --- tests/test_request_stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_request_stream.py b/tests/test_request_stream.py index 0cb10a44..ac447ed2 100644 --- a/tests/test_request_stream.py +++ b/tests/test_request_stream.py @@ -560,7 +560,7 @@ def test_streaming_new_api(app): # We should have no b"" or None, just proper chunks assert data assert isinstance(data, bytes) - ret.append(data) + ret.append(data.decode("ASCII")) return json(ret) request, response = app.test_client.post("/1", data="TEST data")