mirror of
				https://github.com/django/django.git
				synced 2025-10-26 07:06:08 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -229,7 +229,8 @@ class Templates(unittest.TestCase): | |||||||
|         settings.TEMPLATE_DEBUG = old_td |         settings.TEMPLATE_DEBUG = old_td | ||||||
|         settings.TEMPLATE_STRING_IF_INVALID = old_invalid |         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): |     def render(self, test_template, vals): | ||||||
|         return test_template.render(template.Context(vals[1])) |         return test_template.render(template.Context(vals[1])) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user