Merge "Fix unit tests in python3"

This commit is contained in:
Zuul 2018-08-30 01:21:17 +00:00 committed by Gerrit Code Review
commit 86b38ebc06
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class ScriptTestBase(base.BaseTestCase):
try:
return subprocess.check_output(cmd,
stderr=subprocess.STDOUT,
env=self.env)
env=self.env).decode('utf-8')
# NOTE(bnemec): If we don't handle this exception, all we get is the
# exit code if the command fails.
except subprocess.CalledProcessError as e: