From 000328f7fdeb3e15bcad97bf30497e6b2fe1cc9a Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sat, 18 Jul 2020 16:38:22 +0900 Subject: [PATCH] test: Decode stdout and stderr of epubcheck --- tests/test_build_epub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_build_epub.py b/tests/test_build_epub.py index fc4b5329a..c17954fd3 100644 --- a/tests/test_build_epub.py +++ b/tests/test_build_epub.py @@ -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