Browse files

Fixed flake8 warnings.

  • Loading branch information...
1 parent 86c8926 commit 35f46ec7a99291a560e374183ab4feba2a5c679a @timgraham timgraham committed Mar 21, 2014
Showing with 5 additions and 5 deletions.
  1. +4 −4 tests/forms_tests/tests/test_validators.py
  2. +1 −1 tests/template_tests/tests.py
View
8 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,
+ )
]
)
View
2 tests/template_tests/tests.py
@@ -642,7 +642,7 @@ def get_template_tests(self):
# 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 ################################################

0 comments on commit 35f46ec

Please sign in to comment.