diff options
| author | Tim Graham <timograham@gmail.com> | 2016-06-28 11:21:26 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-07-01 09:58:56 -0400 |
| commit | 567cfc1601a5f475eea12bc5de53b849fa5dadea (patch) | |
| tree | c471ba1af748008e4fbe9faee8cf51d4dffcd263 /tests/settings_tests | |
| parent | 9c48e17480432b8723fcdcc262d8d62866e93a4f (diff) | |
[1.10.x] Replaced use of TestCase.fail() with assertRaises().
Also removed try/except/fail antipattern that hides exceptions.
Backport of c9ae09addffb839403312131d4251e9d8b454508 from master
Diffstat (limited to 'tests/settings_tests')
| -rw-r--r-- | tests/settings_tests/tests.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/settings_tests/tests.py b/tests/settings_tests/tests.py index 19ffcc084d..97d734ed68 100644 --- a/tests/settings_tests/tests.py +++ b/tests/settings_tests/tests.py @@ -127,10 +127,7 @@ class ClassDecoratedTestCase(ClassDecoratedTestCaseSuper): Overriding a method on a super class and then calling that method on the super class should not trigger infinite recursion. See #17011. """ - try: - super(ClassDecoratedTestCase, self).test_max_recursion_error() - except RuntimeError: - self.fail() + super(ClassDecoratedTestCase, self).test_max_recursion_error() @modify_settings(ITEMS={'append': 'mother'}) |
