diff options
author | Matthäus G. Chajdas <dev@anteru.net> | 2020-09-08 20:33:25 +0200 |
---|---|---|
committer | Matthäus G. Chajdas <dev@anteru.net> | 2020-09-08 20:33:25 +0200 |
commit | 203ef1eff6daebab6f95b0b49e6e6a58168073fb (patch) | |
tree | 7defa199f48a34787f980b6400d8bbaa9380039a /tests/test_smarty.py | |
parent | e09d4e0cf23d7c6069ddc690942ceb4cd23fd556 (diff) | |
parent | b2c91c70ee536b0472100d1273818f8bb45529fe (diff) | |
download | pygments-git-bug/angular-html.tar.gz |
Merge branch 'master' into bug/angular-htmlbug/angular-html
# Conflicts:
# tests/test_shell.py
Diffstat (limited to 'tests/test_smarty.py')
-rw-r--r-- | tests/test_smarty.py | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/tests/test_smarty.py b/tests/test_smarty.py index 2b45abee..caf23622 100644 --- a/tests/test_smarty.py +++ b/tests/test_smarty.py @@ -19,21 +19,21 @@ def lexer(): def test_nested_curly(lexer): - fragment = u'{templateFunction param={anotherFunction} param2=$something}\n' + fragment = '{templateFunction param={anotherFunction} param2=$something}\n' tokens = [ - (Token.Comment.Preproc, u'{'), - (Token.Name.Function, u'templateFunction'), - (Token.Text, u' '), - (Token.Name.Attribute, u'param'), - (Token.Operator, u'='), - (Token.Comment.Preproc, u'{'), - (Token.Name.Attribute, u'anotherFunction'), - (Token.Comment.Preproc, u'}'), - (Token.Text, u' '), - (Token.Name.Attribute, u'param2'), - (Token.Operator, u'='), - (Token.Name.Variable, u'$something'), - (Token.Comment.Preproc, u'}'), - (Token.Other, u'\n'), + (Token.Comment.Preproc, '{'), + (Token.Name.Function, 'templateFunction'), + (Token.Text, ' '), + (Token.Name.Attribute, 'param'), + (Token.Operator, '='), + (Token.Comment.Preproc, '{'), + (Token.Name.Attribute, 'anotherFunction'), + (Token.Comment.Preproc, '}'), + (Token.Text, ' '), + (Token.Name.Attribute, 'param2'), + (Token.Operator, '='), + (Token.Name.Variable, '$something'), + (Token.Comment.Preproc, '}'), + (Token.Other, '\n'), ] assert list(lexer.get_tokens(fragment)) == tokens |