From 0329f8aa1562ed0f8541baa07d572668313e0733 Mon Sep 17 00:00:00 2001 From: Lukasz Mitusinski Date: Thu, 22 Mar 2018 11:12:55 +0100 Subject: [PATCH] #751 fixed python2 kernel output parsing for tests --- nbconvert/preprocessors/tests/test_execute.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nbconvert/preprocessors/tests/test_execute.py b/nbconvert/preprocessors/tests/test_execute.py index 35804fe5b..f01415094 100644 --- a/nbconvert/preprocessors/tests/test_execute.py +++ b/nbconvert/preprocessors/tests/test_execute.py @@ -60,6 +60,8 @@ def normalize_output(output): ['model_id'] = '' for key, value in output.get('data', {}).items(): if isinstance(value, string_types): + if sys.version_info.major == 2: + value = value.replace('u\'', '\'') output['data'][key] = _normalize_base64(value) if 'traceback' in output: tb = [