Commit 550a70ed authored by Stefan Behnel's avatar Stefan Behnel

fix Numpy test by replacing 'char' buffer type by explicit 'signed char'

parent aedb1769
...@@ -247,8 +247,8 @@ cdef class ErrorBuffer: ...@@ -247,8 +247,8 @@ cdef class ErrorBuffer:
# Structs # Structs
# #
cdef struct MyStruct: cdef struct MyStruct:
char a signed char a
char b signed char b
long long int c long long int c
int d int d
int e int e
...@@ -263,11 +263,11 @@ cdef struct NestedStruct: ...@@ -263,11 +263,11 @@ cdef struct NestedStruct:
int z int z
cdef packed struct PackedStruct: cdef packed struct PackedStruct:
char a signed char a
int b int b
cdef struct NestedPackedStruct: cdef struct NestedPackedStruct:
char a signed char a
int b int b
PackedStruct sub PackedStruct sub
int c int c
......
...@@ -300,7 +300,7 @@ def test_coerce_to_numpy(): ...@@ -300,7 +300,7 @@ def test_coerce_to_numpy():
cdef NestedStruct nestedstructs[20] cdef NestedStruct nestedstructs[20]
cdef PackedStruct packedstructs[20] cdef PackedStruct packedstructs[20]
cdef char chars[20] cdef signed char chars[20]
cdef short shorts[20] cdef short shorts[20]
cdef int ints[20] cdef int ints[20]
cdef long long longlongs[20] cdef long long longlongs[20]
...@@ -369,7 +369,7 @@ def test_coerce_to_numpy(): ...@@ -369,7 +369,7 @@ def test_coerce_to_numpy():
index(<NestedStruct[:4, :5]> <NestedStruct *> nestedstructs) index(<NestedStruct[:4, :5]> <NestedStruct *> nestedstructs)
index(<PackedStruct[:4, :5]> <PackedStruct *> packedstructs) index(<PackedStruct[:4, :5]> <PackedStruct *> packedstructs)
index(<char[:4, :5]> <char *> chars) index(<signed char[:4, :5]> <signed char *> chars)
index(<short[:4, :5]> <short *> shorts) index(<short[:4, :5]> <short *> shorts)
index(<int[:4, :5]> <int *> ints) index(<int[:4, :5]> <int *> ints)
index(<long long[:4, :5]> <long long *> longlongs) index(<long long[:4, :5]> <long long *> longlongs)
...@@ -424,7 +424,7 @@ def acquire_release_cycle(obj): ...@@ -424,7 +424,7 @@ def acquire_release_cycle(obj):
cdef packed struct StructArray: cdef packed struct StructArray:
int a[4] int a[4]
char b[5] signed char b[5]
@testcase_numpy_1_5 @testcase_numpy_1_5
def test_memslice_structarray(data, dtype): def test_memslice_structarray(data, dtype):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment