diff options
Diffstat (limited to 'tests/test_build_texinfo.py')
-rw-r--r-- | tests/test_build_texinfo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_build_texinfo.py b/tests/test_build_texinfo.py index 378eaa192..9833218d7 100644 --- a/tests/test_build_texinfo.py +++ b/tests/test_build_texinfo.py @@ -58,8 +58,8 @@ def test_texinfo(app, status, warning): try: args = ['makeinfo', '--no-split', 'sphinxtests.texi'] subprocess.run(args, stdout=PIPE, stderr=PIPE, cwd=app.outdir, check=True) - except OSError: - raise pytest.skip.Exception # most likely makeinfo was not found + except OSError as exc: + raise pytest.skip.Exception from exc # most likely makeinfo was not found except CalledProcessError as exc: print(exc.stdout) print(exc.stderr) |