##// END OF EJS Templates
Fix printing test failures on Python 3
Thomas Kluyver -
Show More
@@ -28,6 +28,7 b' import subprocess'
28 import time
28 import time
29
29
30 from .iptest import have, test_group_names, test_sections
30 from .iptest import have, test_group_names, test_sections
31 from IPython.utils.py3compat import bytes_to_str
31 from IPython.utils.sysinfo import sys_info
32 from IPython.utils.sysinfo import sys_info
32 from IPython.utils.tempdir import TemporaryDirectory
33 from IPython.utils.tempdir import TemporaryDirectory
33
34
@@ -269,7 +270,7 b' def run_iptestall(inc_slow=False, jobs=1, xunit_out=False, coverage_out=False):'
269 res_string = 'OK' if res == 0 else 'FAILED'
270 res_string = 'OK' if res == 0 else 'FAILED'
270 print(justify('IPython test group: ' + controller.section, res_string))
271 print(justify('IPython test group: ' + controller.section, res_string))
271 if res:
272 if res:
272 print(controller.stdout)
273 print(bytes_to_str(controller.stdout))
273 failed.append(controller)
274 failed.append(controller)
274 if res == -signal.SIGINT:
275 if res == -signal.SIGINT:
275 print("Interrupted")
276 print("Interrupted")
General Comments 0
You need to be logged in to leave comments. Login now