summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2012-11-03 21:09:37 (GMT)
committerÉric Araujo <merwok@netwok.org>2012-11-03 21:09:37 (GMT)
commit95b4ec8ee3ffba5a6ac9f0e4024db1393c1c9577 (patch)
tree10bf3e364127e0af83ca7482fecdff9037c56e4e /Lib
parent8c997fa8bf5970eee0762664f598d13d5c5a48a8 (diff)
parent1e58ae44dfb60c6cb87a072498a68eb10e416279 (diff)
downloadcpython-95b4ec8ee3ffba5a6ac9f0e4024db1393c1c9577.zip
cpython-95b4ec8ee3ffba5a6ac9f0e4024db1393c1c9577.tar.gz
cpython-95b4ec8ee3ffba5a6ac9f0e4024db1393c1c9577.tar.bz2
Branch merge
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_codecs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py
index 93660f7..f2a1ae3 100644
--- a/Lib/test/test_codecs.py
+++ b/Lib/test/test_codecs.py
@@ -668,6 +668,8 @@ class UTF8Test(ReadTest):
self.assertTrue(codecs.lookup_error("surrogatepass"))
with self.assertRaises(UnicodeDecodeError):
b"abc\xed\xa0".decode("utf-8", "surrogatepass")
+ with self.assertRaises(UnicodeDecodeError):
+ b"abc\xed\xa0z".decode("utf-8", "surrogatepass")
@unittest.skipUnless(sys.platform == 'win32',
'cp65001 is a Windows-only codec')