diff options
| author | Gary Wilson Jr <gary.wilson@gmail.com> | 2009-03-30 16:08:57 +0000 |
|---|---|---|
| committer | Gary Wilson Jr <gary.wilson@gmail.com> | 2009-03-30 16:08:57 +0000 |
| commit | 4a5a21d10c610339ea2ed7bc1732b6e66cf296ff (patch) | |
| tree | 7cafeed2925c7f6d73a8be5122aec43015bba85d | |
| parent | 8f996105ec01ee2ae717cfff6290ceb27027f2de (diff) | |
[1.0.X]: Made the template tests error output a bit more pretty.
Backport of r10191 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10192 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | tests/regressiontests/templates/tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/regressiontests/templates/tests.py b/tests/regressiontests/templates/tests.py index d5eb8aa083..08e7e5906e 100644 --- a/tests/regressiontests/templates/tests.py +++ b/tests/regressiontests/templates/tests.py @@ -225,7 +225,8 @@ class Templates(unittest.TestCase): settings.TEMPLATE_DEBUG = old_td settings.TEMPLATE_STRING_IF_INVALID = old_invalid - self.assertEqual(failures, [], ('-'*70 + '\n').join(failures)) + self.assertEqual(failures, [], "Tests failed:\n%s\n%s" % + ('-'*70, ("\n%s\n" % ('-'*70)).join(failures))) def render(self, test_template, vals): return test_template.render(template.Context(vals[1])) |
