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): ...@@ -76,8 +76,11 @@ def test_nbcourse_wrong_build(create_wrong_project):
"""Test sample build with nbcourse.yml sample file""" """Test sample build with nbcourse.yml sample file"""
course = NbCourse(Path('nbcourse.yml')) course = NbCourse(Path('nbcourse.yml'))
course.conf['book'] course.conf['book']
with pytest.raises(SystemExit): ret = 0
try: try:
assert course.build(["-n 4"]) == 2 ret = course.build(["-n 4"])
except AssertionError: except SystemExit:
pass 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