Skip to content

Commit

Permalink
Fixed flake8 warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
timgraham committed Mar 21, 2014
1 parent 86c8926 commit 35f46ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/forms_tests/tests/test_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
]

)
Expand Down
2 changes: 1 addition & 1 deletion tests/template_tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ################################################
Expand Down

0 comments on commit 35f46ec

Please sign in to comment.