diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-04-05 15:09:30 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-04-05 15:09:30 (GMT) |
commit | cd76c274c6a032ff280e6dc22a76db854b4f4922 (patch) | |
tree | 3d9ca1fd0a81a42e1bb45679bf79c3268d59b512 /Lib | |
parent | 8dbca06b220b1ac2bfbccb09fb07f6f2ab4213f4 (diff) | |
download | cpython-cd76c274c6a032ff280e6dc22a76db854b4f4922.zip cpython-cd76c274c6a032ff280e6dc22a76db854b4f4922.tar.gz cpython-cd76c274c6a032ff280e6dc22a76db854b4f4922.tar.bz2 |
Added a test to make sure raw strings don't get unicode escapes
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_unicode.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index f7e7cb4..c64dee5 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -68,6 +68,8 @@ class UnicodeTest( self.assertRaises(SyntaxError, eval, '\'\\Ufffffffe\'') self.assertRaises(SyntaxError, eval, '\'\\Uffffffff\'') self.assertRaises(SyntaxError, eval, '\'\\U%08x\'' % 0x110000) + # raw strings should not have unicode escapes + self.assertNotEquals(r"\u0020", " ") def test_repr(self): if not sys.platform.startswith('java'): |