diff options
| author | Tim Graham <timograham@gmail.com> | 2014-03-21 06:24:45 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-03-21 06:25:21 -0400 |
| commit | caa753ffd634eb6305f844fdd958314e5aa0d341 (patch) | |
| tree | 27759b1b89fb4acd5ca9513d66350ebd7741f42f | |
| parent | b74ec85c1d4285aa6b3e220c6b55596dd6bdafad (diff) | |
[1.7.x] Fixed flake8 warnings.
Backport of 35f46ec7a9 from master
| -rw-r--r-- | tests/forms_tests/tests/test_validators.py | 8 | ||||
| -rw-r--r-- | tests/template_tests/tests.py | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/forms_tests/tests/test_validators.py b/tests/forms_tests/tests/test_validators.py index c69597b497..2f42d2ad44 100644 --- a/tests/forms_tests/tests/test_validators.py +++ b/tests/forms_tests/tests/test_validators.py @@ -29,10 +29,10 @@ class UserForm(forms.Form): max_length=50, validators=[ validators.RegexValidator( - regex='^[a-z]*$', - message="Letters only.", - flags=re.IGNORECASE, - ) + regex='^[a-z]*$', + message="Letters only.", + flags=re.IGNORECASE, + ) ] ) diff --git a/tests/template_tests/tests.py b/tests/template_tests/tests.py index 1b38c1e112..784f59ecd9 100644 --- a/tests/template_tests/tests.py +++ b/tests/template_tests/tests.py @@ -642,7 +642,7 @@ class TemplateTests(TestCase): # SYNTAX -- # 'template_name': ('template contents', 'context dict', 'expected string output' or Exception class) # This import is necessary when tests are run isolated: - from .templatetags import custom + from .templatetags import custom # noqa basedir = os.path.dirname(os.path.abspath(upath(__file__))) tests = { ### BASIC SYNTAX ################################################ |
