From b7a0163810c1a0ed1c3ab56dbc7db0bef058345d Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Fri, 27 Mar 2015 15:02:50 +0000 Subject: [PATCH] Make quoting consistent in the new tests --- IPython/html/tests/widgets/widget.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/IPython/html/tests/widgets/widget.js b/IPython/html/tests/widgets/widget.js index 1cd3464ed..b87136504 100644 --- a/IPython/html/tests/widgets/widget.js +++ b/IPython/html/tests/widgets/widget.js @@ -183,29 +183,29 @@ casper.notebook_test(function () { ' try:', ' y = memoryview(x)', ' except TypeError:', - " # in python 2, arrays don't support the new buffer protocol", + ' # in python 2, arrays do not support the new buffer protocol', ' y = memoryview(buffer(x))', - " return y, {'serialization': ('floatArray', 'TestWidget')}", + ' return y, {"serialization": ("floatArray", "TestWidget")}', 'def _memoryview_to_array(x):', - " return array('d', x.tobytes())", + ' return array("d", x.tobytes())', 'arrays_binary = {', - " 'from_json': _memoryview_to_array,", - " 'to_json': _array_to_memoryview", + ' "from_json": _memoryview_to_array,', + ' "to_json": _array_to_memoryview', '}', '', 'def _array_to_list(x):', ' if x is None: return None, {}', - " return list(x), {'serialization': ('floatList', 'TestWidget')}", + ' return list(x), {"serialization": ("floatList", "TestWidget")}', 'def _list_to_array(x):', - " return array('d',x)", + ' return array("d",x)', 'arrays_list = {', - " 'from_json': _list_to_array,", - " 'to_json': _array_to_list", + ' "from_json": _list_to_array,', + ' "to_json": _array_to_list', '}', '', 'class TestWidget(widgets.DOMWidget):', - " _view_module = Unicode('TestWidget', sync=True)", - " _view_name = Unicode('TestWidget', sync=True)", + ' _view_module = Unicode("TestWidget", sync=True)', + ' _view_name = Unicode("TestWidget", sync=True)', ' array_binary = Instance(array, sync=True, **arrays_binary)', ' array_list = Instance(array, sync=True, **arrays_list)', ' msg = {}',