$OpenBSD: patch-Lib_test_test_unicode_py,v 1.1 2008/08/06 03:23:31 djm Exp $ --- Lib/test/test_unicode.py.orig Mon Jun 11 14:31:25 2007 +++ Lib/test/test_unicode.py Tue Aug 5 18:18:52 2008 @@ -532,6 +532,9 @@ class UnicodeTest( self.assertEqual(unicode('+3ADYAA-', 'utf-7', 'replace'), u'\ufffd') + # Issue #2242: crash on some Windows/MSVC versions + self.assertRaises(UnicodeDecodeError, '+\xc1'.decode, 'utf-7') + def test_codecs_utf8(self): self.assertEqual(u''.encode('utf-8'), '') self.assertEqual(u'\u20ac'.encode('utf-8'), '\xe2\x82\xac')