[pypy-commit] pypy default: Make test_libload_None() independent from cpyext.
Manuel Jacob
noreply at buildbot.pypy.org
Sun May 19 16:06:55 CEST 2013
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
More information about the pypy-commit
mailing list