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:
parent
b6ad1afa68
commit
095dbe8804
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue