From 24b23c8009a4cd2f371012c32c3ad9ba9eca6b99 2015-03-27 15:14:14 From: Jason Grout Date: 2015-03-27 15:14:14 Subject: [PATCH] Convert some test code to python2/3 (add parens for print) --- diff --git a/IPython/html/tests/widgets/widget.js b/IPython/html/tests/widgets/widget.js index b871365..dfcc562 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) {