fails:StringIO#close_read raises an IOError when in write-only mode
