Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

rlib/test/test_libffi.py::TestLibffiMisc::()::test_windll

self = <rpython.rlib.test.test_libffi.TestLibffiMisc object at 0x00000154abd83f30>

    def test_windll(self):
        if os.name != 'nt':
            py.test.skip('Run only on windows')
        from rpython.rlib.libffi import WinDLL
>       dll = WinDLL('Kernel32.dll')

rlib\test\test_libffi.py:189: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rlib\libffi.py:446: in __init__
    self.lib = dlopen(libname, mode)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'Kernel32.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\xc5\xa4\xe1\xa1\x94\xed\x94\xb8\xc5\x94\xed\x95\x88\xc5\x94\xed\x95\x98\xc5\x94\x01\x00p2\xe7\x98\x90\xc5\x94..\xe7\x84\xa0\xe7\xbf\xbare'

rlib\rdynload.py:242: DLOpenError
builder: rpython-win-x86-64 build #399
test: rlib/test/test_libffi/py/TestLibffiMisc/()/test_windll