Skip to content

Commit

Permalink
Fixed the error in the template.py test case cause due to inconsisten…
Browse files Browse the repository at this point in the history
…t use of tab/space.
  • Loading branch information
anandology committed Jun 24, 2016
1 parent 9940020 commit 22a5556
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions web/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -1526,13 +1526,13 @@ def test():
>>> t("$for k, v in sorted({'a': 1, 'b': 2}.items()):\n $k $v", globals={'sorted':sorted})()
u'a 1\nb 2\n'
>>> t("$for k, v in ({'a': 1, 'b': 2}.items():\n $k $v")()
Traceback (most recent call last):
...
SyntaxError: invalid syntax
<BLANKLINE>
Template traceback:
File '<template>', line 6
None
Traceback (most recent call last):
...
SyntaxError: invalid syntax
<BLANKLINE>
Template traceback:
File '<template>', line 6
None
Test datetime.
Expand Down

0 comments on commit 22a5556

Please sign in to comment.