summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unicode.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-04-03 16:27:27 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-04-03 16:27:27 (GMT)
commit7afb766c5dcb1e3caef9ca4c09df055933eede1b (patch)
tree1dd8587ca7a608f13371047826530189c9e1f580 /Lib/test/test_unicode.py
parentf95ecf7b157f9aa20f33c50f5ca1b4c50de96daa (diff)
downloadcpython-7afb766c5dcb1e3caef9ca4c09df055933eede1b.zip
cpython-7afb766c5dcb1e3caef9ca4c09df055933eede1b.tar.gz
cpython-7afb766c5dcb1e3caef9ca4c09df055933eede1b.tar.bz2
#2541 Allow unicode escapes in raw strings
Diffstat (limited to 'Lib/test/test_unicode.py')
-rw-r--r--Lib/test/test_unicode.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py
index f7e7cb4..63e10af 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)
+ # Test that raw mode does unicode escapes
+ self.assertEqual(r"\u0020", " ")
def test_repr(self):
if not sys.platform.startswith('java'):