Author: Brian Kearns <[email protected]>
Branch:
Changeset: r60948:abc13a6dcad1
Date: 2013-02-07 20:18 -0500
http://bitbucket.org/pypy/pypy/changeset/abc13a6dcad1/
Log: add a test for 65047c2
diff --git a/rpython/translator/tool/test/test_cbuild.py
b/rpython/translator/tool/test/test_cbuild.py
--- a/rpython/translator/tool/test/test_cbuild.py
+++ b/rpython/translator/tool/test/test_cbuild.py
@@ -77,6 +77,10 @@
int get()
{
return 42;
+ }
+ int shouldnt_export()
+ {
+ return 43;
}'''],
export_symbols = ['get']
)
@@ -87,6 +91,7 @@
except ImportError:
py.test.skip("Need ctypes for that test")
assert ctypes.CDLL(neweci.libraries[0]).get() == 42
+ assert not hasattr(ctypes.CDLL(neweci.libraries[0]), 'shouldnt_export')
assert not neweci.separate_module_sources
assert not neweci.separate_module_files
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit