[issue23004] mock_open() should allow reading binary data

Aaron Hill report at bugs.python.org
Sun Dec 14 14:45:04 CET 2014


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 <report at bugs.python.org>
<http://bugs.python.org/issue23004>
_______________________________________


More information about the Python-bugs-list mailing list