1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed flake8 warning.

This commit is contained in:
Tim Graham 2014-08-03 14:21:45 -04:00
parent 0d23450e81
commit 6e77acc589

View File

@ -632,7 +632,7 @@ class FieldsTests(SimpleTestCase):
def test_regexfield_4(self):
# deprecated error_message argument; remove in Django 2.0
with warnings.catch_warnings(record=True) as w:
with warnings.catch_warnings(record=True):
warnings.simplefilter("always")
f = RegexField('^[0-9][0-9][0-9][0-9]$', error_message='Enter a four-digit number.')
self.assertEqual('1234', f.clean('1234'))