Skip to content

Commit 85eeceb

Browse files
committed
update non_str_non_json aiohttp test
1 parent b8813fe commit 85eeceb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/aiohttp/test_aiohttp_simple_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,9 @@ def test_response_with_non_str_and_non_json_body(aiohttp_app, aiohttp_client):
265265
'/v1.0/aiohttp_non_str_non_json_response'
266266
)
267267
assert get_bye.status == 200
268-
assert (yield from get_bye.read()) == b'1234'
268+
# \n comes from jsonifier.dumps. text/plain gets serialized as json if possible
269+
# as that json representation should generally be more useful then python literals.
270+
assert (yield from get_bye.read()) == b'1234\n'
269271

270272

271273
@asyncio.coroutine

0 commit comments

Comments
 (0)