summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'