Kaydet (Commit) cd76c274 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

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

üst 8dbca06b
......@@ -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'):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment