mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Fixed flake8 warning.
This commit is contained in:
parent
0d23450e81
commit
6e77acc589
@ -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'))
|
||||
|
Loading…
Reference in New Issue
Block a user