From df45e35661fbbb888465552910b9996019f193c8 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Sun, 19 Jun 2011 19:25:26 +0000 Subject: Fixed broken i18n tests after r16437. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16440 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/i18n/commands/extraction.py | 2 +- tests/regressiontests/i18n/commands/templates/template_with_error.tpl | 3 +++ tests/regressiontests/i18n/commands/templates/template_with_error.txt | 3 --- 3 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 tests/regressiontests/i18n/commands/templates/template_with_error.tpl delete mode 100644 tests/regressiontests/i18n/commands/templates/template_with_error.txt diff --git a/tests/regressiontests/i18n/commands/extraction.py b/tests/regressiontests/i18n/commands/extraction.py index 7341c4f7cb..4f476340f2 100644 --- a/tests/regressiontests/i18n/commands/extraction.py +++ b/tests/regressiontests/i18n/commands/extraction.py @@ -79,7 +79,7 @@ class BasicExtractorTests(ExtractorTests): 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) diff --git a/tests/regressiontests/i18n/commands/templates/template_with_error.tpl b/tests/regressiontests/i18n/commands/templates/template_with_error.tpl new file mode 100644 index 0000000000..c2b93bdd06 --- /dev/null +++ b/tests/regressiontests/i18n/commands/templates/template_with_error.tpl @@ -0,0 +1,3 @@ +{% load i18n %} +

This template contains an error (no endblocktrans)

+

{% blocktrans %}This should fail{% blocktrans %}

diff --git a/tests/regressiontests/i18n/commands/templates/template_with_error.txt b/tests/regressiontests/i18n/commands/templates/template_with_error.txt deleted file mode 100644 index c2b93bdd06..0000000000 --- a/tests/regressiontests/i18n/commands/templates/template_with_error.txt +++ /dev/null @@ -1,3 +0,0 @@ -{% load i18n %} -

This template contains an error (no endblocktrans)

-

{% blocktrans %}This should fail{% blocktrans %}

-- cgit v1.3