diff options
Diffstat (limited to 'testing/test_parsing.py')
| -rw-r--r-- | testing/test_parsing.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/testing/test_parsing.py b/testing/test_parsing.py index d5bf273..73c2277 100644 --- a/testing/test_parsing.py +++ b/testing/test_parsing.py @@ -130,8 +130,9 @@ def test_typedef_array_convert_array_to_pointer(): ffi.cdef(""" typedef int (*fn_t)(int[5]); """) - type = ffi._parser.parse_type("fn_t") - BType = ffi._get_cached_btype(type) + with ffi._lock: + type = ffi._parser.parse_type("fn_t") + BType = ffi._get_cached_btype(type) assert str(BType) == '<func (<pointer to <int>>), <int>, False>' def test_remove_comments(): |
