Author: gwilson Date: 2009-03-30 11:08:57 -0500 (Mon, 30 Mar 2009) New Revision: 10192
Modified: django/branches/releases/1.0.X/tests/regressiontests/templates/tests.py Log: [1.0.X]: Made the template tests error output a bit more pretty. Backport of r10191 from trunk. Modified: django/branches/releases/1.0.X/tests/regressiontests/templates/tests.py =================================================================== --- django/branches/releases/1.0.X/tests/regressiontests/templates/tests.py 2009-03-30 16:05:57 UTC (rev 10191) +++ django/branches/releases/1.0.X/tests/regressiontests/templates/tests.py 2009-03-30 16:08:57 UTC (rev 10192) @@ -225,7 +225,8 @@ 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])) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---