Author: jezdez Date: 2011-06-19 12:25:26 -0700 (Sun, 19 Jun 2011) New Revision: 16440
Added: django/trunk/tests/regressiontests/i18n/commands/templates/template_with_error.tpl Removed: django/trunk/tests/regressiontests/i18n/commands/templates/template_with_error.txt Modified: django/trunk/tests/regressiontests/i18n/commands/extraction.py Log: Fixed broken i18n tests after r16437. Modified: django/trunk/tests/regressiontests/i18n/commands/extraction.py =================================================================== --- django/trunk/tests/regressiontests/i18n/commands/extraction.py 2011-06-19 18:00:09 UTC (rev 16439) +++ django/trunk/tests/regressiontests/i18n/commands/extraction.py 2011-06-19 19:25:26 UTC (rev 16440) @@ -79,7 +79,7 @@ def test_extraction_error(self): os.chdir(self.test_dir) - shutil.copyfile('./templates/template_with_error.txt', './templates/template_with_error.html') + shutil.copyfile('./templates/template_with_error.tpl', './templates/template_with_error.html') self.assertRaises(SyntaxError, management.call_command, 'makemessages', locale=LOCALE, verbosity=0) try: management.call_command('makemessages', locale=LOCALE, verbosity=0) Copied: django/trunk/tests/regressiontests/i18n/commands/templates/template_with_error.tpl (from rev 16439, django/trunk/tests/regressiontests/i18n/commands/templates/template_with_error.txt) =================================================================== --- django/trunk/tests/regressiontests/i18n/commands/templates/template_with_error.tpl (rev 0) +++ django/trunk/tests/regressiontests/i18n/commands/templates/template_with_error.tpl 2011-06-19 19:25:26 UTC (rev 16440) @@ -0,0 +1,3 @@ +{% load i18n %} +<p>This template contains an error (no endblocktrans)</p> +<p>{% blocktrans %}This should fail{% blocktrans %}</p> Deleted: django/trunk/tests/regressiontests/i18n/commands/templates/template_with_error.txt =================================================================== --- django/trunk/tests/regressiontests/i18n/commands/templates/template_with_error.txt 2011-06-19 18:00:09 UTC (rev 16439) +++ django/trunk/tests/regressiontests/i18n/commands/templates/template_with_error.txt 2011-06-19 19:25:26 UTC (rev 16440) @@ -1,3 +0,0 @@ -{% load i18n %} -<p>This template contains an error (no endblocktrans)</p> -<p>{% blocktrans %}This should fail{% blocktrans %}</p> -- 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.