mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #7976 from tk0miya/test_build_epub_decode
test: Decode stdout and stderr of epubcheck
This commit is contained in:
commit
4ab487350a
@ -391,6 +391,6 @@ def test_run_epubcheck(app):
|
|||||||
subprocess.run(['java', '-jar', epubcheck, app.outdir / 'SphinxTests.epub'],
|
subprocess.run(['java', '-jar', epubcheck, app.outdir / 'SphinxTests.epub'],
|
||||||
stdout=PIPE, stderr=PIPE, check=True)
|
stdout=PIPE, stderr=PIPE, check=True)
|
||||||
except CalledProcessError as exc:
|
except CalledProcessError as exc:
|
||||||
print(exc.stdout)
|
print(exc.stdout.decode('utf-8'))
|
||||||
print(exc.stderr)
|
print(exc.stderr.decode('utf-8'))
|
||||||
assert False, 'epubcheck exited with return code %s' % exc.returncode
|
assert False, 'epubcheck exited with return code %s' % exc.returncode
|
||||||
|
Loading…
Reference in New Issue
Block a user