From 59be7846e9b5b509c7f1912e2001e25e82c42ba5 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sun, 29 Mar 2015 18:17:28 +0200 Subject: [PATCH] fix utf8 in tests for jsonp --- tests/steps/api_setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/steps/api_setup.py b/tests/steps/api_setup.py index 35443cdb..fcaa39a2 100644 --- a/tests/steps/api_setup.py +++ b/tests/steps/api_setup.py @@ -36,7 +36,7 @@ def api_call(requesttype): world.response_format = fmt elif fmt in ('json', 'jsonv2'): if 'json_callback' in world.params: - world.json_callback = world.params['json_callback'] + world.json_callback = world.params['json_callback'].encode('utf8') assert world.page.startswith(world.json_callback + '(') assert world.page.endswith(')') world.page = world.page[(len(world.json_callback)+1):-1] -- 2.39.5