mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #23923 -- Promoted Django's deprecation warnings to errors in runtests.py
This commit is contained in:
parent
860eb01d17
commit
3131e9cef5
11 changed files with 46 additions and 21 deletions
|
@ -62,6 +62,8 @@ class FormMixinTests(TestCase):
|
|||
|
||||
def test_get_form_missing_form_class_default_value(self):
|
||||
with warnings.catch_warnings(record=True) as w:
|
||||
warnings.filterwarnings('always')
|
||||
|
||||
class MissingDefaultValue(FormMixin):
|
||||
request = RequestFactory().get('/')
|
||||
form_class = forms.Form
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue