From 5dec36de15cafd1e51f33acfd12b7b07d82a192c Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Wed, 18 May 2011 12:30:22 +0000 Subject: [PATCH] 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 --- tests/regressiontests/settings_tests/tests.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tests/regressiontests/settings_tests/tests.py b/tests/regressiontests/settings_tests/tests.py index cb2f9e0f1a..630ab1c6c6 100644 --- a/tests/regressiontests/settings_tests/tests.py +++ b/tests/regressiontests/settings_tests/tests.py @@ -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'):