Commit 1988afd8 authored by Matthieu Boileau's avatar Matthieu Boileau

Try to fix AssertionError in test

parent bf48bad0
Pipeline #8445 failed with stage
in 1 minute and 41 seconds
...@@ -77,5 +77,7 @@ def test_nbcourse_wrong_build(create_wrong_project): ...@@ -77,5 +77,7 @@ def test_nbcourse_wrong_build(create_wrong_project):
course = NbCourse(Path('nbcourse.yml')) course = NbCourse(Path('nbcourse.yml'))
course.conf['book'] course.conf['book']
with pytest.raises(SystemExit): with pytest.raises(SystemExit):
with pytest.raises(AssertionError): try:
assert course.build(["-n 4"]) == 2 assert course.build(["-n 4"]) == 2
except AssertionError:
pass
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment