Skip to content

Commit 475bad7

Browse files
committed
tweak the test for pypy, where we get an extra null byte after a plain 'char'
1 parent c613cfe commit 475bad7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c/test_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3638,7 +3638,7 @@ def test_struct_array_no_length():
36383638
assert not buffer_warning(cast(BIntP, p))
36393639

36403640
def test_more_buffer_warning():
3641-
BChar = new_primitive_type("char")
3641+
BChar = new_primitive_type("unsigned char")
36423642
BCharP = new_pointer_type(BChar)
36433643
BArray = new_array_type(BCharP, 10) # char[10]
36443644
p = newp(BArray)

0 commit comments

Comments
 (0)