[pypy-commit] pypy default: update cffi's _backend_test_c.py

bdkearns noreply at buildbot.pypy.org
Mon Mar 3 02:05:30 CET 2014


Author: Brian Kearns <bdkearns at gmail.com>
Branch: 
Changeset: r69624:1b624a48fffc
Date: 2014-03-02 20:04 -0500
http://bitbucket.org/pypy/pypy/changeset/1b624a48fffc/

Log:	update cffi's _backend_test_c.py

diff --git a/pypy/module/_cffi_backend/test/_backend_test_c.py b/pypy/module/_cffi_backend/test/_backend_test_c.py
--- a/pypy/module/_cffi_backend/test/_backend_test_c.py
+++ b/pypy/module/_cffi_backend/test/_backend_test_c.py
@@ -359,6 +359,9 @@
     assert x.load_function(BVoidP, 'strcpy')
     py.test.raises(KeyError, x.load_function,
                    BVoidP, 'xxx_this_function_does_not_exist')
+    # the next one is from 'libm', not 'libc', but we assume
+    # that it is already loaded too, so it should work
+    assert x.load_function(BVoidP, 'sqrt')
 
 def test_hash_differences():
     BChar = new_primitive_type("char")


More information about the pypy-commit mailing list