Removed a settings test introduced in r16237 that didn't run on Python < 2.6 due to a SyntaxError raise regarding the class decorators. Thanks for the hint, Julien.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16238 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel 2011-05-18 12:30:22 +00:00
parent a3a53e0b73
commit 5dec36de15
1 changed files with 0 additions and 9 deletions

View File

@ -63,15 +63,6 @@ class SettingsTests(TestCase):
self.assertEqual(DecoratedSettingGetter().test, 'override')
self.assertRaises(AttributeError, getattr, settings, 'TEST')
@skipIf(sys.version_info[:2] < (2, 6), "Python version is lower than 2.6")
def test_new_class_decorator(self):
self.assertEqual(SettingGetter().test, 'undefined')
@override_settings(TEST='override')
class DecoratedSettingGetter(SettingGetter):
pass
self.assertEqual(DecoratedSettingGetter().test, 'override')
self.assertRaises(AttributeError, getattr, settings, 'TEST')
def test_signal_callback_context_manager(self):
self.assertRaises(AttributeError, getattr, settings, 'TEST')
with self.settings(TEST='override'):