From 53c1dff91c0b7100e1ce1b51acbf0fffbc10cf9c Mon Sep 17 00:00:00 2001 From: Ram Rachum Date: Sun, 14 Jun 2020 00:46:19 +0300 Subject: Fix exception causes all over the codebase --- tests/test_build_latex.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test_build_latex.py') diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py index d3c491461..3bf6edd66 100644 --- a/tests/test_build_latex.py +++ b/tests/test_build_latex.py @@ -64,8 +64,8 @@ def compile_latex_document(app, filename='python.tex'): '-output-directory=%s' % app.config.latex_engine, filename] subprocess.run(args, stdout=PIPE, stderr=PIPE, check=True) - except OSError: # most likely the latex executable was not found - raise pytest.skip.Exception + except OSError as exc: # most likely the latex executable was not found + raise pytest.skip.Exception from exc except CalledProcessError as exc: print(exc.stdout) print(exc.stderr) @@ -1545,7 +1545,7 @@ def test_texescape_for_unicode_supported_engine(app, status, warning): assert 'superscript: ⁰, ¹' in result assert 'subscript: ₀, ₁' in result - + @pytest.mark.sphinx('latex', testroot='basic', confoverrides={'latex_elements': {'extrapackages': r'\usepackage{foo}'}}) def test_latex_elements_extrapackages(app, status, warning): -- cgit v1.2.1