From 567cfc1601a5f475eea12bc5de53b849fa5dadea Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 28 Jun 2016 11:21:26 -0400 Subject: [1.10.x] Replaced use of TestCase.fail() with assertRaises(). Also removed try/except/fail antipattern that hides exceptions. Backport of c9ae09addffb839403312131d4251e9d8b454508 from master --- tests/settings_tests/tests.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests/settings_tests') 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'}) -- cgit v1.3