mirror of
https://github.com/python/cpython.git
synced 2025-07-16 07:45:20 +00:00
Added a test to make sure raw strings don't get unicode escapes
This commit is contained in:
parent
8dbca06b22
commit
cd76c274c6
1 changed files with 2 additions and 0 deletions
|
@ -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'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue