summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_codeccallbacks.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-01-29 08:20:34 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-01-29 08:20:34 (GMT)
commitc8e58126a2acfb5d3c6bbbaf326e69785830bedb (patch)
tree8dc333a5b1a257dd13c60370d3b3501edec764ee /Lib/test/test_codeccallbacks.py
parent8d15ca3cc67e2f7a57e205cc52c55f816f2207ba (diff)
downloadcpython-c8e58126a2acfb5d3c6bbbaf326e69785830bedb.zip
cpython-c8e58126a2acfb5d3c6bbbaf326e69785830bedb.tar.gz
cpython-c8e58126a2acfb5d3c6bbbaf326e69785830bedb.tar.bz2
Issue #16979: Fix error handling bugs in the unicode-escape-decode decoder.
Diffstat (limited to 'Lib/test/test_codeccallbacks.py')
-rw-r--r--Lib/test/test_codeccallbacks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_codeccallbacks.py b/Lib/test/test_codeccallbacks.py
index 150a0d2..61c2df2 100644
--- a/Lib/test/test_codeccallbacks.py
+++ b/Lib/test/test_codeccallbacks.py
@@ -262,12 +262,12 @@ class CodecCallbackTest(unittest.TestCase):
self.assertEqual(
"\\u3042\u3xxx".decode("unicode-escape", "test.handler1"),
- u"\u3042[<92><117><51><120>]xx"
+ u"\u3042[<92><117><51>]xxx"
)
self.assertEqual(
"\\u3042\u3xx".decode("unicode-escape", "test.handler1"),
- u"\u3042[<92><117><51><120><120>]"
+ u"\u3042[<92><117><51>]xx"
)
self.assertEqual(