[pypy-commit] cffi default: Don't try to call the missing function from the test: it just fails

arigo noreply at buildbot.pypy.org
Sun Aug 12 13:39:21 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r810:622e88f1c12d
Date: 2012-08-12 13:39 +0200
http://bitbucket.org/cffi/cffi/changeset/622e88f1c12d/

Log:	Don't try to call the missing function from the test: it just fails
	in the hard way, and anyway we know it can only fail here.

diff --git a/testing/test_verify.py b/testing/test_verify.py
--- a/testing/test_verify.py
+++ b/testing/test_verify.py
@@ -40,9 +40,9 @@
     else:
         # but depending on compiler and loader details, maybe
         # 'lib' could actually be imported but will fail if we
-        # actually try to call the unknown function...
-        lib.some_completely_unknown_function()
-        # ^^ crashes completely??
+        # actually try to call the unknown function...  Hard
+        # to test anything more.
+        pass
 
 def test_missing_function_import_error():
     # uses the original FFI that just gives a warning during compilation


More information about the pypy-commit mailing list