Created originally on Bitbucket by marky1991 (Mark Young)
Was already merged in Bitbucket before import, marked as merged by the import user
(fixes test_codecs)
Apparently the decoder for the unicode_internal codec doesn't emit a deprecationwarning if you give invalid input, instead only raising a typeerror. (This is in contrast to the encoder, which will emit the deprecationwarning in the same scenario). This causes the test_codecs to not get deprecationwarnings as it expects, causing the codecs tests to fail.