Commit 7fd70504 authored by Matthieu Boileau's avatar Matthieu Boileau

Try to fix random error in test_nbcourse_wrong_build

parent 1988afd8
Pipeline #8449 passed with stage
in 1 minute and 43 seconds
......@@ -76,8 +76,11 @@ def test_nbcourse_wrong_build(create_wrong_project):
"""Test sample build with nbcourse.yml sample file"""
course = NbCourse(Path('nbcourse.yml'))
course.conf['book']
with pytest.raises(SystemExit):
try:
assert course.build(["-n 4"]) == 2
except AssertionError:
pass
ret = 0
try:
ret = course.build(["-n 4"])
except SystemExit:
ret = 2
except AssertionError:
ret = 2
assert ret == 2
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