Skip to content

Commit

Permalink
Decode err for tests running under Python 3.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 240813313
  • Loading branch information
ItsMattL committed Mar 29, 2019
1 parent 5bb57e8 commit 07e2ae3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions testing/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 07e2ae3

Please sign in to comment.