Fixed #23923 -- Promoted Django's deprecation warnings to errors in runtests.py

This commit is contained in:
Tim Graham 2014-11-26 16:21:29 -05:00
parent 860eb01d17
commit 3131e9cef5
11 changed files with 46 additions and 21 deletions

View file

@ -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