[pypy-commit] cffi default: Add a passing test

arigo noreply at buildbot.pypy.org
Fri Feb 28 10:51:38 CET 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r1467:fdc1c8a70bd9
Date: 2014-02-28 10:49 +0100
http://bitbucket.org/cffi/cffi/changeset/fdc1c8a70bd9/

Log:	Add a passing test

diff --git a/c/test_c.py b/c/test_c.py
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -370,6 +370,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