From 5e83876fc7555c28e135c133168179725418ee10 Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Fri, 27 Mar 2015 15:14:14 +0000 Subject: [PATCH] Convert some test code to python2/3 (add parens for print) --- IPython/html/tests/widgets/widget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IPython/html/tests/widgets/widget.js b/IPython/html/tests/widgets/widget.js index b87136504..dfcc56263 100644 --- a/IPython/html/tests/widgets/widget.js +++ b/IPython/html/tests/widgets/widget.js @@ -216,7 +216,7 @@ casper.notebook_test(function () { ' self.msg = [content, buffers]', 'x=TestWidget()', 'display(x)', - 'print x.model_id'].join('\n'), function(index){ + 'print(x.model_id)'].join('\n'), function(index){ testwidget.index = index; testwidget.model_id = this.get_output_cell(index).text.trim(); }); @@ -239,7 +239,7 @@ casper.notebook_test(function () { this.test.assertEquals(result, ["1.5", "2", "3.1"], "JSON custom serializer kernel -> js"); }); - this.assert_output_equals('print x.array_list.tolist() == [1.51234, 25678.0, 3.1]', + this.assert_output_equals('print(x.array_list.tolist() == [1.51234, 25678.0, 3.1])', 'True', 'JSON custom serializer js -> kernel'); if (this.slimerjs) {