Aaron Hill added the comment: Thanks, I've fixed that. Not sure why I thought decoding and re-encoding would work with any binary data.
I've also updated one of the tests to use non-utf8-decodeable binary data, to prevent a future regression. ---------- Added file: http://bugs.python.org/file37446/mock-open-allow-binary-without-coerce.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23004> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com