From cd76c274c6a032ff280e6dc22a76db854b4f4922 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 5 Apr 2008 15:09:30 +0000 Subject: Added a test to make sure raw strings don't get unicode escapes --- Lib/test/test_unicode.py | 2 ++ 1 file changed, 2 insertions(+) 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'): -- cgit v0.12