Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit a6d7b418dec429bd6d4830ce65ad2b40df6a25e6 1 parent 9face54
@gdub gdub authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  tests/regressiontests/templates/tests.py
View
3  tests/regressiontests/templates/tests.py
@@ -229,7 +229,8 @@ def test_template_loader(template_name, template_dirs=None):
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]))
Please sign in to comment.
Something went wrong with that request. Please try again.