diff options
author | Georg Brandl <georg@python.org> | 2020-09-08 20:20:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-08 20:20:19 +0200 |
commit | 9f5672672bd61f7149d2a165b49f0617a1a9fe8e (patch) | |
tree | ad3d62c5c167c6a75edf67a88c20341c77566c7e /tests/test_java.py | |
parent | d9a9e9ee40eb9815ecc3d9ec9d6f5e57499009d2 (diff) | |
download | pygments-git-9f5672672bd61f7149d2a165b49f0617a1a9fe8e.tar.gz |
all: remove "u" string prefix (#1536)
* all: remove "u" string prefix
* util: remove unirange
Since Python 3.3, all builds are wide unicode compatible.
* unistring: remove support for narrow-unicode builds
which stopped being relevant with Python 3.3
Diffstat (limited to 'tests/test_java.py')
-rw-r--r-- | tests/test_java.py | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/tests/test_java.py b/tests/test_java.py index 467a3b72..3baec0ad 100644 --- a/tests/test_java.py +++ b/tests/test_java.py @@ -19,23 +19,23 @@ def lexer(): def test_enhanced_for(lexer): - fragment = u'label:\nfor(String var2: var1) {}\n' + fragment = 'label:\nfor(String var2: var1) {}\n' tokens = [ - (Name.Label, u'label:'), - (Text, u'\n'), - (Keyword, u'for'), - (Punctuation, u'('), - (Name, u'String'), - (Text, u' '), - (Name, u'var2'), - (Punctuation, u':'), - (Text, u' '), - (Name, u'var1'), - (Punctuation, u')'), - (Text, u' '), - (Punctuation, u'{'), - (Punctuation, u'}'), - (Text, u'\n'), + (Name.Label, 'label:'), + (Text, '\n'), + (Keyword, 'for'), + (Punctuation, '('), + (Name, 'String'), + (Text, ' '), + (Name, 'var2'), + (Punctuation, ':'), + (Text, ' '), + (Name, 'var1'), + (Punctuation, ')'), + (Text, ' '), + (Punctuation, '{'), + (Punctuation, '}'), + (Text, '\n'), ] assert list(lexer.get_tokens(fragment)) == tokens |