Merge pull request #7976 from tk0miya/test_build_epub_decode

test: Decode stdout and stderr of epubcheck
This commit is contained in:
Takeshi KOMIYA 2020-07-18 16:46:06 +09:00 committed by GitHub
commit 4ab487350a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -391,6 +391,6 @@ def test_run_epubcheck(app):
subprocess.run(['java', '-jar', epubcheck, app.outdir / 'SphinxTests.epub'],
stdout=PIPE, stderr=PIPE, check=True)
except CalledProcessError as exc:
print(exc.stdout)
print(exc.stderr)
print(exc.stdout.decode('utf-8'))
print(exc.stderr.decode('utf-8'))
assert False, 'epubcheck exited with return code %s' % exc.returncode