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
This commit is contained in:
Julien Phalip 2011-10-08 11:36:05 +00:00
parent b6ad1afa68
commit 095dbe8804
1 changed files with 1 additions and 1 deletions

View File

@ -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):