Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(11082)

Unified Diff: Lib/test/test_codecs.py

Issue 13916: disallow the "surrogatepass" handler for non utf-* encodings
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Objects/unicodeobject.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_codecs.py Fri May 16 14:46:20 2014 +0200
+++ b/Lib/test/test_codecs.py Fri May 16 14:49:53 2014 +0200
@@ -2759,7 +2759,7 @@ class CodePageTest(unittest.TestCase):
codecs.code_page_encode, 932, '\xff')
self.assertRaisesRegex(UnicodeDecodeError, 'cp932',
codecs.code_page_decode, 932, b'\x81\x00', 'strict', True)
- self.assertRaisesRegex(UnicodeDecodeError, 'CP_UTF8',
+ self.assertRaisesRegex(UnicodeDecodeError, 'cp65001',
codecs.code_page_decode, self.CP_UTF8, b'\xff', 'strict', True)
def check_decode(self, cp, tests):
« no previous file with comments | « no previous file | Objects/unicodeobject.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+