Author: ramiro Date: 2011-07-07 17:39:59 -0700 (Thu, 07 Jul 2011) New Revision: 16524
Modified: django/trunk/tests/regressiontests/i18n/patterns/tests.py Log: FIlter warnings about deprecated syntax of the `url` template tag in recently added tests. Modified: django/trunk/tests/regressiontests/i18n/patterns/tests.py =================================================================== --- django/trunk/tests/regressiontests/i18n/patterns/tests.py 2011-07-07 21:46:02 UTC (rev 16523) +++ django/trunk/tests/regressiontests/i18n/patterns/tests.py 2011-07-08 00:39:59 UTC (rev 16524) @@ -1,6 +1,7 @@ from __future__ import with_statement import os +import warnings from django.core.exceptions import ImproperlyConfigured from django.core.urlresolvers import reverse, clear_url_caches @@ -248,6 +249,14 @@ """ Test if the language tag works. """ + def setUp(self): + self.save_warnings_state() + warnings.filterwarnings('ignore', category=DeprecationWarning, + module='django.template.defaulttags') + + def tearDown(self): + self.restore_warnings_state() + def test_strings_only(self): t = Template("""{% load i18n %} {% language 'nl' %}{% url no-prefix-translated %}{% endlanguage %} -- 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.