From 9f5672672bd61f7149d2a165b49f0617a1a9fe8e Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 8 Sep 2020 20:20:19 +0200 Subject: 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 --- tests/test_cpp.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/test_cpp.py') 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) -- cgit v1.2.1