diff options
| author | Gary Wilson Jr <gary.wilson@gmail.com> | 2009-03-30 16:05:57 +0000 |
|---|---|---|
| committer | Gary Wilson Jr <gary.wilson@gmail.com> | 2009-03-30 16:05:57 +0000 |
| commit | a6d7b418dec429bd6d4830ce65ad2b40df6a25e6 (patch) | |
| tree | 411eb7002963b68026596657ad184f718bde6633 /tests/regressiontests/templates | |
| parent | 9face54bb7e8e906a5097b0f1215f59f91181f28 (diff) | |
Made the template tests error output a bit more pretty.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10191 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/templates')
| -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 22d7f7d217..c51122266a 100644 --- a/tests/regressiontests/templates/tests.py +++ b/tests/regressiontests/templates/tests.py @@ -229,7 +229,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])) |
