Fixed flake8 warning.

This commit is contained in:
Tim Graham 2014-08-03 14:21:45 -04:00
parent 0d23450e81
commit 6e77acc589
1 changed files with 1 additions and 1 deletions

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'))