Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r59132:279756e62262
Date: 2012-11-29 21:46 +0100
http://bitbucket.org/pypy/pypy/changeset/279756e62262/

Log:    Skip this test completely, it passes for bad reasons on CPython,
        loops forever when the expected TypeError is not raised, and is
        based on false assumptions anyway. (very early in py3k, bytes
        strings used to be mutable...)

diff --git a/lib-python/3.2/test/test_codeccallbacks.py 
b/lib-python/3.2/test/test_codeccallbacks.py
--- a/lib-python/3.2/test/test_codeccallbacks.py
+++ b/lib-python/3.2/test/test_codeccallbacks.py
@@ -824,6 +824,8 @@
             text = 'abc<def>ghi'*n
             text.translate(charmap)
 
+    # This test may be removed from CPython as well. see issue16577.
+    @test.support.impl_detail("PyPy does not have this restriction", 
pypy=False)
     def test_mutatingdecodehandler(self):
         baddata = [
             ("ascii", b"\xff"),
@@ -844,7 +846,6 @@
                 raise TypeError("don't know how to handle %r" % exc)
         codecs.register_error("test.replacing", replacing)
         for (encoding, data) in baddata:
-            print((encoding, data))
             self.assertRaises(TypeError, data.decode, encoding, 
"test.replacing")
 
         def mutating(exc):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to