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_cpp.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_cpp.py')
| -rw-r--r-- | tests/test_cpp.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_cpp.py b/tests/test_cpp.py index a3ef33a3..e847079d 100644 --- a/tests/test_cpp.py +++ b/tests/test_cpp.py @@ -21,18 +21,18 @@ def lexer(): def test_good_comment(lexer): - fragment = u'/* foo */\n' + fragment = '/* foo */\n' tokens = [ - (Token.Comment.Multiline, u'/* foo */'), - (Token.Text, u'\n'), + (Token.Comment.Multiline, '/* foo */'), + (Token.Text, '\n'), ] assert list(lexer.get_tokens(fragment)) == tokens def test_open_comment(lexer): - fragment = u'/* foo\n' + fragment = '/* foo\n' tokens = [ - (Token.Comment.Multiline, u'/* foo\n'), + (Token.Comment.Multiline, '/* foo\n'), ] assert list(lexer.get_tokens(fragment)) == tokens @@ -52,4 +52,4 @@ def test_guess_c_lexer(): } ''' lexer = guess_lexer(code) - assert isinstance(lexer, CLexer)
\ No newline at end of file + assert isinstance(lexer, CLexer) |
