'In python3, stdout / stderr are text io wrappers (exposing a buffer
property of the underlying bytestream).  See issue #1407'

@pytest.mark.skipif((sys.version_info[0] == 2), reason='python    3    only    behaviour')
def test_write_bytes_to_buffer(self):

    f = capture.CaptureIO()
    f.buffer.write('foo\r\n')
    assert (f.getvalue() == 'foo\r\n')
