summaryrefslogtreecommitdiff
path: root/Lib/test/tokenize_tests.txt
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-01-12 22:46:19 +0100
committerAntoine Pitrou <solipsis@pitrou.net>2012-01-12 22:46:19 +0100
commit3a5d4cb940d9f06505b0b65916fd9a844bed13e3 (patch)
tree4f76dccee7b943c2d421442240892fe711401053 /Lib/test/tokenize_tests.txt
parentb63a450cc4c69c4e8668aa434a37b2aa213e94e0 (diff)
downloadcpython-git-3a5d4cb940d9f06505b0b65916fd9a844bed13e3.tar.gz
Issue #13748: Raw bytes literals can now be written with the `rb` prefix as well as `br`.
Diffstat (limited to 'Lib/test/tokenize_tests.txt')
-rw-r--r--Lib/test/tokenize_tests.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/tokenize_tests.txt b/Lib/test/tokenize_tests.txt
index 06c83b0a84..2c5fb10576 100644
--- a/Lib/test/tokenize_tests.txt
+++ b/Lib/test/tokenize_tests.txt
@@ -114,8 +114,12 @@ x = b'abc' + B'ABC'
y = b"abc" + B"ABC"
x = br'abc' + Br'ABC' + bR'ABC' + BR'ABC'
y = br"abc" + Br"ABC" + bR"ABC" + BR"ABC"
+x = rb'abc' + rB'ABC' + Rb'ABC' + RB'ABC'
+y = rb"abc" + rB"ABC" + Rb"ABC" + RB"ABC"
x = br'\\' + BR'\\'
+x = rb'\\' + RB'\\'
x = br'\'' + ''
+x = rb'\'' + ''
y = br'''
foo bar \\
baz''' + BR'''
@@ -124,6 +128,10 @@ y = Br"""foo
bar \\ baz
""" + bR'''spam
'''
+y = rB"""foo
+bar \\ baz
+""" + Rb'''spam
+'''
# Indentation
if 1: