From eb163f37cb62268443d592f8ce08bd8a0ab9631d Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Fri, 30 Mar 2012 09:08:29 +0000 Subject: Use the class decorator syntax available in Python >= 2.6. Refs #17965. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17829 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/modeltests/proxy_model_inheritance/tests.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/modeltests/proxy_model_inheritance/tests.py') diff --git a/tests/modeltests/proxy_model_inheritance/tests.py b/tests/modeltests/proxy_model_inheritance/tests.py index a048e1aabe..ae5ab20b5f 100644 --- a/tests/modeltests/proxy_model_inheritance/tests.py +++ b/tests/modeltests/proxy_model_inheritance/tests.py @@ -18,7 +18,7 @@ from django.test import TransactionTestCase from django.test.utils import override_settings -# @override_settings(INSTALLED_APPS=('app1', 'app2')) +@override_settings(INSTALLED_APPS=('app1', 'app2')) class ProxyModelInheritanceTests(TransactionTestCase): def setUp(self): @@ -41,5 +41,3 @@ class ProxyModelInheritanceTests(TransactionTestCase): from .app2.models import NiceModel self.assertEqual(NiceModel.objects.all().count(), 0) self.assertEqual(ProxyModel.objects.all().count(), 0) - -ProxyModelInheritanceTests = override_settings(INSTALLED_APPS=('app1', 'app2'))(ProxyModelInheritanceTests) -- cgit v1.3