Skip to content

Commit ef35cd8

Browse files
committed
increase tutorial notebook test timeout
1 parent 2d433ad commit ef35cd8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/tutorials_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
from nbclient.exceptions import CellExecutionError
99
from nbconvert.preprocessors import ExecutePreprocessor
1010

11+
TEST_TIMEOUT = 1200
12+
1113

1214
def list_notebooks(directory: str) -> list:
1315
"""Return sorted list of all notebooks in a directory."""
@@ -25,7 +27,7 @@ def test_tutorials(notebook_path):
2527
"""Test that all notebooks in the tutorials directory can be executed."""
2628
with open(notebook_path) as f:
2729
nb = nbformat.read(f, as_version=4)
28-
ep = ExecutePreprocessor(timeout=600, kernel_name='python3')
30+
ep = ExecutePreprocessor(timeout=TEST_TIMEOUT, kernel_name='python3')
2931
print(f"Executing notebook {notebook_path}")
3032
try:
3133
ep.preprocess(nb, {'metadata': {'path': os.path.dirname(notebook_path)}})

0 commit comments

Comments
 (0)