mirror of https://github.com/django/django.git
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:
parent
a3a53e0b73
commit
5dec36de15
|
@ -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'):
|
||||
|
|
Loading…
Reference in New Issue