[pypy-svn] r61096 - pypy/trunk/lib-python/modified-2.5.2/test

fijal at codespeak.net fijal at codespeak.net
Mon Jan 19 01:06:30 CET 2009


Author: fijal
Date: Mon Jan 19 01:06:29 2009
New Revision: 61096

Modified:
   pypy/trunk/lib-python/modified-2.5.2/test/test_codecs.py
Log:
I suppose it's fine to raise overflow error there


Modified: pypy/trunk/lib-python/modified-2.5.2/test/test_codecs.py
==============================================================================
--- pypy/trunk/lib-python/modified-2.5.2/test/test_codecs.py	(original)
+++ pypy/trunk/lib-python/modified-2.5.2/test/test_codecs.py	Mon Jan 19 01:06:29 2009
@@ -638,7 +638,7 @@
             for internal in not_ok:
                 if sys.byteorder == "little":
                     internal = "".join(reversed(internal))
-                self.assertRaises(UnicodeDecodeError, internal.decode,
+                self.assertRaises((UnicodeDecodeError, OverflowError), internal.decode,
                     "unicode_internal")
 
     def test_decode_error_attributes(self):
@@ -997,7 +997,7 @@
     "base64_codec",
     #"big5",
     #"big5hkscs",
-    "charmap",
+    #"charmap",
     "cp037",
     "cp1006",
     "cp1026",



More information about the Pypy-commit mailing list