Permalink
Browse files

Fixed flake8 warning.

  • Loading branch information...
timgraham committed Aug 3, 2014
1 parent 0d23450 commit 6e77acc589aaf4d95bb1665fe9526a7bc1e24a7c
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/forms_tests/tests/test_fields.py
@@ -632,7 +632,7 @@ def test_regexfield_3(self):
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'))

0 comments on commit 6e77acc

Please sign in to comment.