mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Replaced use of TestCase.fail() with assertRaises().
Also removed try/except/fail antipattern that hides exceptions.
This commit is contained in:
@@ -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'})
|
||||
|
||||
Reference in New Issue
Block a user