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

cffi_tests.cffi1.test_re_python:test_dlclose

def test_dlclose():
        import _cffi_backend
        from re_python_pysrc import ffi
        lib = ffi.dlopen(extmod)
        ffi.dlclose(lib)
        if type(extmod) is not str:   # unicode, on python 2
            str_extmod = extmod.encode('utf-8')
        else:
            str_extmod = extmod
        e = pytest.raises(ffi.error, getattr, lib, 'add42')
>       assert str(e.value) == (
            "library '%s' has been closed" % (str_extmod,))
E       assert "library 'u'd...s been closed" == "library 'd:\\...s been closed"
E         - library 'u'd:\\\\systemtemp\\\\ffi-698\\\\test_re_python\\\\_test_re_python.pypy-80\\u03be.pyd'' has been closed
E         ?         --   --              --       --                --                           ^^^       -
E         + library 'd:\\systemtemp\\ffi-698\\test_re_python\\_test_re_python.pypy-80\xce\xbe.pyd' has been closed
E         ?                                                                           +++ ^

..\build\extra_tests\cffi_tests\cffi1\test_re_python.py:135: AssertionError
builder: pypy-c-jit-win-x86-64 build #2505+
test: cffi_tests.cffi1.test_re_python:test_dlclose