mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
#2541 Allow unicode escapes in raw strings
This commit is contained in:
parent
f95ecf7b15
commit
7afb766c5d
2 changed files with 3 additions and 1 deletions
|
@ -68,6 +68,8 @@ class UnicodeTest(
|
|||
self.assertRaises(SyntaxError, eval, '\'\\Ufffffffe\'')
|
||||
self.assertRaises(SyntaxError, eval, '\'\\Uffffffff\'')
|
||||
self.assertRaises(SyntaxError, eval, '\'\\U%08x\'' % 0x110000)
|
||||
# Test that raw mode does unicode escapes
|
||||
self.assertEqual(r"\u0020", " ")
|
||||
|
||||
def test_repr(self):
|
||||
if not sys.platform.startswith('java'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue