v1.3.0
Update
Submitted as a patch to python.
Changed
- Used mock wrapping for file operations (
seek
,read
, etc.) instead ofside_effect
. Now there's no need to use contrived workarounds to add aside_effect
to a mock. Also, settingreturn_value
actually works! - Python 3: Opening files as binary creates (or changes to) a
BytesIO
to store contents. - Merged the issues' unit tests to the main testing module.