rlib/test/test_streamio.py::TestDiskFile::()::test_append_mode
self = <rpython.rlib.test.test_streamio.TestDiskFile instance at 0x00000261d06de960>
@pytest.mark.skipif("sys.platform == 'darwin'")
def test_append_mode(self):
tfn = str(udir.join('streamio-append-mode'))
fo = streamio.open_file_as_stream # shorthand
> x = fo(tfn, 'w')
rlib\test\test_streamio.py:1130:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rlib\streamio.py:88: in open_file_as_stream
stream = open_path_helper(path, os_flags, basemode == "a", signal_checker)
rlib\streamio.py:123: in open_path_helper
fd = rposix.open(path, os_flags, 0666)
rlib\rposix.py:471: in open
return handle_posix_error('open', fd)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
name = 'open', result = -1
@specialize.arg(0)
def handle_posix_error(name, result):
result = widen(result)
if result < 0:
> raise OSError(get_saved_errno(), '%s failed' % name)
E OSError: [Errno 13] open failed
rlib\rposix.py:434: OSError
builder: rpython-win-x86-64 build #399
test: rlib/test/test_streamio/py/TestDiskFile/()/test_append_mode