Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 095dbe8804d89785b59ef0cd0381a31b31a2dab5 1 parent b6ad1af
@jphalip jphalip authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/regressiontests/settings_tests/tests.py
View
2  tests/regressiontests/settings_tests/tests.py
@@ -46,7 +46,6 @@ def test_max_recursion_error(self):
pass
-@override_settings(TEST='override')
class ClassDecoratedTestCase(ClassDecoratedTestCaseSuper):
def test_override(self):
self.assertEqual(settings.TEST, 'override')
@@ -66,6 +65,7 @@ def test_max_recursion_error(self):
except RuntimeError, e:
self.fail()
+ClassDecoratedTestCase = override_settings(TEST='override')(ClassDecoratedTestCase)
class SettingGetter(object):
def __init__(self):
Please sign in to comment.
Something went wrong with that request. Please try again.