From 38e84d6d2ca243ec64a35e2065f7981a59868e4e Mon Sep 17 00:00:00 2001 From: Romain Thomas Date: Sat, 11 Aug 2018 04:11:56 +0200 Subject: [PATCH] Fix encoding issue --- tests/pe/test_pe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/pe/test_pe.py b/tests/pe/test_pe.py index 4b0f5c4..97cd91c 100644 --- a/tests/pe/test_pe.py +++ b/tests/pe/test_pe.py @@ -87,7 +87,8 @@ class TestPe(TestCase): p = Popen([output], shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, creationflags=subprocess_flags) stdout, _ = p.communicate() - self.logger.debug(stdout.decode("utf8")) + stdout = stdout.decode("utf8") + self.logger.debug(stdout) self.assertIn("Hello World", stdout)