summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-03-21 06:24:45 -0400
committerTim Graham <timograham@gmail.com>2014-03-21 06:24:45 -0400
commit35f46ec7a99291a560e374183ab4feba2a5c679a (patch)
treefecfe00b20f9ff82786df79ee25ca48d8f1124a0
parent86c89265698f636107a31f3538d2cd604049990d (diff)
Fixed flake8 warnings.
-rw-r--r--tests/forms_tests/tests/test_validators.py8
-rw-r--r--tests/template_tests/tests.py2
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 ################################################