Kaydet (Commit) 6e77acc5 authored tarafından Tim Graham's avatar Tim Graham

Fixed flake8 warning.

üst 0d23450e
......@@ -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'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment