rlib/test/test_rdynload.py::TestDLOperations::()::test_dlopen
self = <rpython.rlib.test.test_rdynload.TestDLOperations instance at 0x0000020f010af660>
def test_dlopen(self):
s = 'xxxxxxxxxxxx'
py.test.raises(DLOpenError, "dlopen(s)")
#
s = get_libc_name()
> assert dlopen(s)
rlib\test\test_rdynload.py:13:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
name = 'C:\\WINDOWS\\System32\\ucrtbase.dll', mode = -1
def dlopen(name, mode=-1):
# mode is unused on windows, but a consistant signature
if not name:
raise DLOpenError("cannot use None")
with rffi.scoped_utf82wcharp(name, codepoints_in_utf8(name)) as buf:
res = rwin32.LoadLibraryW(buf)
if not res:
err = rwin32.GetLastError_saved()
ustr, lgt = rwin32.FormatErrorW(err)
> raise DLOpenError(ustr)
E DLOpenError: 'Teseiidmdl ol o efud\xf2\xa0\x80\x8d\x00\xe4\x9a\xa9\xe1\xac\x80\\?C\\idw\\ytm2kre3.l'
rlib\rdynload.py:242: DLOpenError
builder: rpython-win-x86-64 build #399
test: rlib/test/test_rdynload/py/TestDLOperations/()/test_dlopen