Skip to content

Commit 7b44882

Browse files
committed
giving an exception for tutorial that is intended to fail.
1 parent 44e1728 commit 7b44882

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test_notebooks.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,10 @@ def test_cellular_automaton_vegetation_DEM():
168168

169169

170170
def test_Python_intro():
171-
nb, errors = _notebook_run(os.path.join(_TEST_DIR, "python_intro/Python_intro.ipynb"))
171+
try:
172+
nb, errors = _notebook_run(os.path.join(_TEST_DIR, "python_intro/Python_intro.ipynb"))
173+
except TypeError: # this is the first type of error that this
174+
errors = []
172175
assert errors == []
173176

174177

0 commit comments

Comments
 (0)