summaryrefslogtreecommitdiff
path: root/Lib/test/tokenize_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/tokenize_tests.py')
-rw-r--r--Lib/test/tokenize_tests.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/Lib/test/tokenize_tests.py b/Lib/test/tokenize_tests.py
index 4883668304..4974671f28 100644
--- a/Lib/test/tokenize_tests.py
+++ b/Lib/test/tokenize_tests.py
@@ -110,6 +110,20 @@ y = r"""foo
bar \\ baz
""" + R'''spam
'''
+x = u'abc' + U'ABC'
+y = u"abc" + U"ABC"
+x = ur'abc' + Ur'ABC' + uR'ABC' + UR'ABC'
+y = ur"abc" + Ur"ABC" + uR"ABC" + UR"ABC"
+x = ur'\\' + UR'\\'
+x = ur'\'' + ''
+y = ur'''
+foo bar \\
+baz''' + UR'''
+foo'''
+y = Ur"""foo
+bar \\ baz
+""" + uR'''spam
+'''
# Indentation
if 1: