Adjusted previous commit.

Sigh.
This commit is contained in:
Aymeric Augustin 2015-09-10 18:21:56 +02:00
parent 968b02f8f0
commit 613ee39bf8
1 changed files with 5 additions and 4 deletions

View File

@ -95,9 +95,11 @@ 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, initial_indent=' ', subsequent_indent=' ')
original_exc_txt = textwrap.fill(original_exc_txt, 75)
original_exc_txt = textwrap.indent(original_exc_txt, ' ')
pickle_exc_txt = repr(exc)
pickle_exc_txt = textwrap.fill(pickle_exc_txt, 75, initial_indent=' ', subsequent_indent=' ')
pickle_exc_txt = textwrap.fill(pickle_exc_txt, 75)
pickle_exc_txt = textwrap.indent(pickle_exc_txt, ' ')
if tblib is None:
print("""
@ -177,8 +179,7 @@ failure and get a correct traceback.
# expected failure occurs.
if tblib is None:
err = err[0], err[1], None
else:
self.check_pickleable(test, err)
self.check_pickleable(test, err)
self.events.append(('addExpectedFailure', self.test_index, err))
def addUnexpectedSuccess(self, test):