Refs #20461 -- Fixed parallel test runner on Python 2.7.

textwrap.indent() is new in Python 3.3.
This commit is contained in:
Collin Anderson 2015-09-10 11:57:26 -04:00 committed by Tim Graham
parent b1a29541e5
commit c97b755a1c
1 changed files with 2 additions and 4 deletions

View File

@ -95,11 +95,9 @@ class RemoteTestResult(object):
pickle.dumps(err)
except Exception as exc:
original_exc_txt = repr(err[1])
original_exc_txt = textwrap.fill(original_exc_txt, 75)
original_exc_txt = textwrap.indent(original_exc_txt, ' ')
original_exc_txt = textwrap.fill(original_exc_txt, 75, initial_indent=' ', subsequent_indent=' ')
pickle_exc_txt = repr(exc)
pickle_exc_txt = textwrap.fill(pickle_exc_txt, 75)
pickle_exc_txt = textwrap.indent(pickle_exc_txt, ' ')
pickle_exc_txt = textwrap.fill(pickle_exc_txt, 75, initial_indent=' ', subsequent_indent=' ')
if tblib is None:
print("""