mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
Convert some test code to python2/3 (add parens for print)
This commit is contained in:
parent
b2f775549d
commit
5e83876fc7
@ -216,7 +216,7 @@ casper.notebook_test(function () {
|
|||||||
' self.msg = [content, buffers]',
|
' self.msg = [content, buffers]',
|
||||||
'x=TestWidget()',
|
'x=TestWidget()',
|
||||||
'display(x)',
|
'display(x)',
|
||||||
'print x.model_id'].join('\n'), function(index){
|
'print(x.model_id)'].join('\n'), function(index){
|
||||||
testwidget.index = index;
|
testwidget.index = index;
|
||||||
testwidget.model_id = this.get_output_cell(index).text.trim();
|
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.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');
|
'True', 'JSON custom serializer js -> kernel');
|
||||||
|
|
||||||
if (this.slimerjs) {
|
if (this.slimerjs) {
|
||||||
|
Loading…
Reference in New Issue
Block a user