File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -215,11 +215,8 @@ def test_continue_linenos_conf_option(doctree):
215
215
3 + 3
216
216
217
217
"""
218
-
219
- tree = doctree (
220
- source ,
221
- config = "jupyter_sphinx_linenos = True\n " "jupyter_sphinx_continue_linenos = True" ,
222
- )
218
+ config = ["jupyter_sphinx_linenos = True" , "jupyter_sphinx_continue_linenos = True" ]
219
+ tree = doctree (source , config = "\n " .join (config ))
223
220
224
221
cell0 , cell1 = tree .findall (JupyterCellNode )
225
222
(cellinput0 , celloutput0 ) = cell0 .children
@@ -246,10 +243,8 @@ def test_continue_linenos_conf_option(doctree):
246
243
3 + 3
247
244
248
245
"""
249
- tree = doctree (
250
- source ,
251
- config = "jupyter_sphinx_linenos = True\n " "jupyter_sphinx_continue_linenos = True" ,
252
- )
246
+ config = ["jupyter_sphinx_linenos = True" , "jupyter_sphinx_continue_linenos = True" ]
247
+ tree = doctree (source , config = "\n " .join (config ))
253
248
cell0 , cell1 = tree .findall (JupyterCellNode )
254
249
(cellinput0 , celloutput0 ) = cell0 .children
255
250
(cellinput1 , celloutput1 ) = cell1 .children
You can’t perform that action at this time.
0 commit comments