Decode err for tests running under Python 3.

PiperOrigin-RevId: 240813313
This commit is contained in:
mattl
2019-03-28 14:19:50 -04:00
committed by Matt LaPlante
parent 5bb57e8635
commit 07e2ae3cf0

View File

@@ -35,6 +35,7 @@ def main():
print('**** %s ****\n' % test)
proc = subprocess.Popen(['python', '-m', test], stderr=subprocess.PIPE)
_, err = proc.communicate()
err = err.decode()
print(err)
failed = FAILED_RE.search(err)
if failed: