Added a test to make sure raw strings don't get unicode escapes

This commit is contained in:
Benjamin Peterson 2008-04-05 15:09:30 +00:00
parent 8dbca06b22
commit cd76c274c6

View file

@ -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'):