Permalink
Browse files

Removed a settings test introduced in r16237 that didn't run on Pytho…

…n < 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
  • Loading branch information...
1 parent a3a53e0 commit 5dec36de15cafd1e51f33acfd12b7b07d82a192c @jezdez jezdez committed May 18, 2011
Showing with 0 additions and 9 deletions.
  1. +0 −9 tests/regressiontests/settings_tests/tests.py
@@ -63,15 +63,6 @@ def test_class_decorator(self):
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'):

0 comments on commit 5dec36d

Please sign in to comment.