diff options
author | Armin Rigo <arigo@tunes.org> | 2022-06-08 10:10:31 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2022-06-08 10:10:31 +0200 |
commit | ddd56a92609eacd598cde41e4244b08722f01730 (patch) | |
tree | d935931e7222d80e64242b7e442f8969f3fcb98b | |
parent | 1dfaec5c1a272c205530a0feb726d2047db17a84 (diff) | |
download | cffi-ddd56a92609eacd598cde41e4244b08722f01730.tar.gz |
tweak the test for pypy, where we get an extra null byte after a plain 'char'
-rw-r--r-- | c/test_c.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c/test_c.py b/c/test_c.py index efc1b74..f2f1c70 100644 --- a/c/test_c.py +++ b/c/test_c.py @@ -3638,7 +3638,7 @@ def test_struct_array_no_length(): assert not buffer_warning(cast(BIntP, p)) def test_more_buffer_warning(): - BChar = new_primitive_type("char") + BChar = new_primitive_type("unsigned char") BCharP = new_pointer_type(BChar) BArray = new_array_type(BCharP, 10) # char[10] p = newp(BArray) |