mirror of https://github.com/django/django.git
Modified a try block construct in a test case to be compatible with Python 2.4.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15209 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
0bd628d418
commit
8b4dffd8df
|
@ -63,6 +63,7 @@ class BasicExtractorTests(ExtractorTests):
|
|||
os.chdir(self.test_dir)
|
||||
shutil.copyfile('./templates/template_with_error.txt', './templates/template_with_error.html')
|
||||
self.assertRaises(SyntaxError, management.call_command, 'makemessages', locale=LOCALE, verbosity=0)
|
||||
try: # TODO: Simplify this try/try block when we drop support for Python 2.4
|
||||
try:
|
||||
management.call_command('makemessages', locale=LOCALE, verbosity=0)
|
||||
except SyntaxError, e:
|
||||
|
|
Loading…
Reference in New Issue