diff --git a/tests/regressiontests/test_utils/tests.py b/tests/regressiontests/test_utils/tests.py
index 942aa85..9eef1ef 100644
a
|
b
|
from __future__ import with_statement
|
3 | 3 | from django.forms import EmailField |
4 | 4 | from django.test import SimpleTestCase, TestCase, skipUnlessDBFeature |
5 | 5 | from django.utils.unittest import skip |
| 6 | from django.test.utils import override_settings |
6 | 7 | |
7 | 8 | from models import Person |
8 | 9 | |
… |
… |
class AssertFieldOutputTests(SimpleTestCase):
|
150 | 151 | self.assertRaises(AssertionError, self.assertFieldOutput, EmailField, {'a@a.com': 'a@a.com'}, {'aaa': [u'Come on, gimme some well formatted data, dude.']}) |
151 | 152 | |
152 | 153 | |
| 154 | class OverrideSettingsTestsSuper(TestCase): |
| 155 | """ |
| 156 | Dummy class for testing max recursion error in child class call to super() |
| 157 | """ |
| 158 | def test_max_recursion_error(self): |
| 159 | pass |
| 160 | |
| 161 | |
| 162 | @override_settings(FOO='bar') |
| 163 | class OverrideSettingsTests(OverrideSettingsTestsSuper): |
| 164 | def test_max_recursion_error(self): |
| 165 | """ |
| 166 | Overriding a method on a super class and then calling that method on |
| 167 | the super class triggers infinite recursion |
| 168 | """ |
| 169 | try: |
| 170 | super(OverrideSettingsTests, self).test_max_recursion_error() |
| 171 | except RuntimeError, e: |
| 172 | self.fail() |
| 173 | |
| 174 | |
153 | 175 | __test__ = {"API_TEST": r""" |
154 | 176 | # Some checks of the doctest output normalizer. |
155 | 177 | # Standard doctests do fairly |