From 095dbe8804d89785b59ef0cd0381a31b31a2dab5 Mon Sep 17 00:00:00 2001 From: Julien Phalip Date: Sat, 8 Oct 2011 11:36:05 +0000 Subject: [PATCH] Made the tests introduced in r16942 use old-style class decoration to run with Python < 2.6. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16943 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/settings_tests/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regressiontests/settings_tests/tests.py b/tests/regressiontests/settings_tests/tests.py index ff2334a95f..d95f27652c 100644 --- a/tests/regressiontests/settings_tests/tests.py +++ b/tests/regressiontests/settings_tests/tests.py @@ -46,7 +46,6 @@ class ClassDecoratedTestCaseSuper(TestCase): pass -@override_settings(TEST='override') class ClassDecoratedTestCase(ClassDecoratedTestCaseSuper): def test_override(self): self.assertEqual(settings.TEST, 'override') @@ -66,6 +65,7 @@ class ClassDecoratedTestCase(ClassDecoratedTestCaseSuper): except RuntimeError, e: self.fail() +ClassDecoratedTestCase = override_settings(TEST='override')(ClassDecoratedTestCase) class SettingGetter(object): def __init__(self):