New submission from Amaury Forgeot d'Arc: The test created by 504084c04ac0 passes for bad reasons, at least for the second part: - "test.mutating" error handler is never used. - If I replace the last line of the test, it still passes, but the TypeError is raised by exc.object[:] = b"" (bytes are not mutable!)
I suggest to revert this old change completely. The premises ("the decoder might use memory that's no longer in use") are no longer true. ---------- components: Unicode messages: 176645 nosy: amaury.forgeotdarc, ezio.melotti, haypo priority: normal severity: normal status: open title: Suspect test.test_codeccallbacks.test_mutatingdecodehandler _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16577> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com