X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/753227ae255cbd71015b042a41dc3cbbfb8f1904..d09b268e01987541384f55469cbd6ddd3ad2d5fe:/tests/steps/api_setup.py?ds=sidebyside 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]