Author: Manuel Jacob Branch: Changeset: r64326:4f71319354fa Date: 2013-05-19 16:00 +0200 http://bitbucket.org/pypy/pypy/changeset/4f71319354fa/
Log: Make test_libload_None() independent from cpyext. diff --git a/pypy/module/_rawffi/test/test__rawffi.py b/pypy/module/_rawffi/test/test__rawffi.py --- a/pypy/module/_rawffi/test/test__rawffi.py +++ b/pypy/module/_rawffi/test/test__rawffi.py @@ -232,9 +232,9 @@ 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 _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit