From: Benjamin Peterson Date: Sat, 5 Apr 2008 15:09:30 +0000 (+0000) Subject: Added a test to make sure raw strings don't get unicode escapes X-Git-Tag: v3.0a5~139 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cd76c274c6a032ff280e6dc22a76db854b4f4922;p=thirdparty%2FPython%2Fcpython.git Added a test to make sure raw strings don't get unicode escapes --- diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index f7e7cb426485..c64dee554499 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'):