summaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2015-11-03 20:58:50 +0100
committerArmin Rigo <arigo@tunes.org>2015-11-03 20:58:50 +0100
commitf334f3af0f1590c5d11ee31a045ccccd17fe8a1d (patch)
treefdaa56fd7ddcacf35910c422ce70962f3c7981f3 /c
parentefd7171aa199815efdc7aa73b8d939b189f90eb6 (diff)
downloadcffi-f334f3af0f1590c5d11ee31a045ccccd17fe8a1d.tar.gz
Add a direct test for _get_common_types()
Diffstat (limited to 'c')
-rw-r--r--c/test_c.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/c/test_c.py b/c/test_c.py
index a1c9420..696654f 100644
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -7,7 +7,7 @@ def _setup_path():
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
_setup_path()
from _cffi_backend import *
-from _cffi_backend import _testfunc, _get_types, __version__
+from _cffi_backend import _testfunc, _get_types, _get_common_types, __version__
# ____________________________________________________________
@@ -3520,3 +3520,8 @@ def test_stdcall_function_type():
assert repr(BFunc) == "<ctype 'int(__stdcall *)(int, int)'>"
else:
assert repr(BFunc) == "<ctype 'int(*)(int, int)'>"
+
+def test_get_common_types():
+ d = {}
+ _get_common_types(d)
+ assert d['bool'] == '_Bool'