Use methods for improved compatibility with file-like objs
Use methods for improved compatibility with file-like objs

This means our test harness can still capture all output / avoid nasty
explosions.

mkusz/invoke,mattrobenolt/invoke,pyinvoke/invoke,mattrobenolt/invoke,frol/invoke,kejbaly2/invoke,frol/invoke,pfmoore/invoke,mkusz/invoke,kejbaly2/invoke,tyewang/invoke,singingwolfboy/invoke,pyinvoke/invoke,pfmoore/invoke