Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Gary Wilson Jr. authored March 30, 2009
3  tests/regressiontests/templates/tests.py
@@ -229,7 +229,8 @@ def test_template_loader(template_name, template_dirs=None):
229 229
         settings.TEMPLATE_DEBUG = old_td
230 230
         settings.TEMPLATE_STRING_IF_INVALID = old_invalid
231 231
 
232  
-        self.assertEqual(failures, [], ('-'*70 + '\n').join(failures))
  232
+        self.assertEqual(failures, [], "Tests failed:\n%s\n%s" %
  233
+            ('-'*70, ("\n%s\n" % ('-'*70)).join(failures)))
233 234
 
234 235
     def render(self, test_template, vals):
235 236
         return test_template.render(template.Context(vals[1]))

0 notes on commit a6d7b41

Please sign in to comment.
Something went wrong with that request. Please try again.