diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-09-10 18:21:56 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-09-10 18:21:56 +0200 |
| commit | 613ee39bf8535fe926183aad4024a4e34ea71dcb (patch) | |
| tree | c7f6146d8fc7645dd6a471b4f56a71e122c7091c | |
| parent | 968b02f8f0f5170d6ec69bca9d92b2c281417782 (diff) | |
Adjusted previous commit.
Sigh.
| -rw-r--r-- | django/test/runner.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/django/test/runner.py b/django/test/runner.py index 487f61827b..06e0d031e9 100644 --- a/django/test/runner.py +++ b/django/test/runner.py @@ -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): |
