diff options
Diffstat (limited to 'tests/test_build_latex.py')
-rw-r--r-- | tests/test_build_latex.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py index 9a325a8d4..3728b3da7 100644 --- a/tests/test_build_latex.py +++ b/tests/test_build_latex.py @@ -60,8 +60,8 @@ def compile_latex_document(app, filename='python.tex'): except CalledProcessError as exc: print(exc.stdout) print(exc.stderr) - assert False, '%s exited with return code %s' % (app.config.latex_engine, - exc.returncode) + raise AssertionError('%s exited with return code %s' % (app.config.latex_engine, + exc.returncode)) def skip_if_requested(testfunc): @@ -992,7 +992,7 @@ def test_image_in_section(app, status, warning): def test_latex_logo_if_not_found(app, status, warning): try: app.builder.build_all() - assert False # SphinxError not raised + raise AssertionError() # SphinxError not raised except Exception as exc: assert isinstance(exc, SphinxError) |