summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2022-06-08 10:10:31 +0200
committerArmin Rigo <arigo@tunes.org>2022-06-08 10:10:31 +0200
commitddd56a92609eacd598cde41e4244b08722f01730 (patch)
treed935931e7222d80e64242b7e442f8969f3fcb98b
parent1dfaec5c1a272c205530a0feb726d2047db17a84 (diff)
downloadcffi-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.py2
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)