diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-01-29 08:20:44 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-01-29 08:20:44 (GMT) |
commit | d679377be78c732f1c7414726542c6b49c9b34ab (patch) | |
tree | 145ae100449962e22449421a35a27c86ef0ccab8 /Lib/test/test_codeccallbacks.py | |
parent | 8e0ae2a4f08bc01b18ba46cbebab78ac9f0c00a6 (diff) | |
download | cpython-d679377be78c732f1c7414726542c6b49c9b34ab.zip cpython-d679377be78c732f1c7414726542c6b49c9b34ab.tar.gz cpython-d679377be78c732f1c7414726542c6b49c9b34ab.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.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_codeccallbacks.py b/Lib/test/test_codeccallbacks.py index e656d2f..3b78b4a 100644 --- a/Lib/test/test_codeccallbacks.py +++ b/Lib/test/test_codeccallbacks.py @@ -262,12 +262,12 @@ class CodecCallbackTest(unittest.TestCase): self.assertEqual( b"\\u3042\u3xxx".decode("unicode-escape", "test.handler1"), - "\u3042[<92><117><51><120>]xx" + "\u3042[<92><117><51>]xxx" ) self.assertEqual( b"\\u3042\u3xx".decode("unicode-escape", "test.handler1"), - "\u3042[<92><117><51><120><120>]" + "\u3042[<92><117><51>]xx" ) self.assertEqual( |