[Python-checkins] cpython (3.3): Fixed tests for issue #19279.

serhiy.storchaka python-checkins at python.org
Sat Oct 19 20:17:20 CEST 2013


http://hg.python.org/cpython/rev/73ab6aba24e5
changeset:   86486:73ab6aba24e5
branch:      3.3
parent:      86480:6971d55fff29
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Sat Oct 19 21:14:57 2013 +0300
summary:
  Fixed tests for issue #19279.

files:
  Lib/test/test_codecs.py |  7 +++----
  1 files changed, 3 insertions(+), 4 deletions(-)


diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py
--- a/Lib/test/test_codecs.py
+++ b/Lib/test/test_codecs.py
@@ -840,10 +840,9 @@
             (b'a+////,+IKw-b', 'a\uffff\ufffd\u20acb'),
         ]
         for raw, expected in tests:
-            with self.subTest(raw=raw):
-                self.assertRaises(UnicodeDecodeError, codecs.utf_7_decode,
-                                raw, 'strict', True)
-                self.assertEqual(raw.decode('utf-7', 'replace'), expected)
+            self.assertRaises(UnicodeDecodeError, codecs.utf_7_decode,
+                              raw, 'strict', True)
+            self.assertEqual(raw.decode('utf-7', 'replace'), expected)
 
     def test_nonbmp(self):
         self.assertEqual('\U000104A0'.encode(self.encoding), b'+2AHcoA-')

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list