1. Konstantin Lopuhin
  2. pypy

Commits

Manuel Jacob  committed 4f71319

Make test_libload_None() independent from cpyext.

  • Participants
  • Parent commits 0a007a2
  • Branches default

Comments (0)

Files changed (1)

File pypy/module/_rawffi/test/test__rawffi.py

View file
         import _rawffi
         # this should return *all* loaded libs, dlopen(NULL)
         dll = _rawffi.CDLL(None)
-        # Assume CPython, or PyPy compiled with cpyext
-        res = dll.ptr('Py_IsInitialized', [], 'l')()
-        assert res[0] == 1
+        func = dll.ptr('rand', [], 'i')
+        res = func()
+        assert res[0] != 0
 
     def test_libc_load(self):
         import _rawffi