mirror of
https://github.com/google/glazier.git
synced 2025-12-19 18:27:35 -05:00
Decode err for tests running under Python 3.
PiperOrigin-RevId: 240813313
This commit is contained in:
@@ -35,6 +35,7 @@ def main():
|
|||||||
print('**** %s ****\n' % test)
|
print('**** %s ****\n' % test)
|
||||||
proc = subprocess.Popen(['python', '-m', test], stderr=subprocess.PIPE)
|
proc = subprocess.Popen(['python', '-m', test], stderr=subprocess.PIPE)
|
||||||
_, err = proc.communicate()
|
_, err = proc.communicate()
|
||||||
|
err = err.decode()
|
||||||
print(err)
|
print(err)
|
||||||
failed = FAILED_RE.search(err)
|
failed = FAILED_RE.search(err)
|
||||||
if failed:
|
if failed:
|
||||||
|
|||||||
Reference in New Issue
Block a user