diff --git a/django/test/utils.py b/django/test/utils.py
index 88da9d5..c0d9d41 100644
a
|
b
|
class override_settings(object):
|
203 | 203 | def _post_teardown(innerself): |
204 | 204 | super(inner, innerself)._post_teardown() |
205 | 205 | self.disable() |
| 206 | inner.__name__ = test_func.__name__ |
206 | 207 | else: |
207 | 208 | @wraps(test_func) |
208 | 209 | def inner(*args, **kwargs): |
diff --git a/tests/regressiontests/settings_tests/tests.py b/tests/regressiontests/settings_tests/tests.py
index 9715046..6af2ed3 100644
a
|
b
|
class FullyDecoratedTranTestCase(TransactionTestCase):
|
15 | 15 | def test_method_override(self): |
16 | 16 | self.assertEqual(settings.TEST, 'override2') |
17 | 17 | |
| 18 | def test_decorated_testcase_name(self): |
| 19 | self.assertEquals(FullyDecoratedTranTestCase.__name__, 'FullyDecoratedTranTestCase') |
| 20 | |
18 | 21 | FullyDecoratedTranTestCase = override_settings(TEST='override')(FullyDecoratedTranTestCase) |
19 | 22 | |
20 | 23 | # @override_settings(TEST='override') |