Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
550a70ed
Commit
550a70ed
authored
Aug 23, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Numpy test by replacing 'char' buffer type by explicit 'signed char'
parent
aedb1769
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
tests/buffers/mockbuffers.pxi
tests/buffers/mockbuffers.pxi
+4
-4
tests/memoryview/numpy_memoryview.pyx
tests/memoryview/numpy_memoryview.pyx
+3
-3
No files found.
tests/buffers/mockbuffers.pxi
View file @
550a70ed
...
...
@@ -247,8 +247,8 @@ cdef class ErrorBuffer:
# Structs
#
cdef
struct
MyStruct
:
char
a
char
b
signed
char
a
signed
char
b
long
long
int
c
int
d
int
e
...
...
@@ -263,11 +263,11 @@ cdef struct NestedStruct:
int
z
cdef
packed
struct
PackedStruct
:
char
a
signed
char
a
int
b
cdef
struct
NestedPackedStruct
:
char
a
signed
char
a
int
b
PackedStruct
sub
int
c
...
...
tests/memoryview/numpy_memoryview.pyx
View file @
550a70ed
...
...
@@ -300,7 +300,7 @@ def test_coerce_to_numpy():
cdef
NestedStruct
nestedstructs
[
20
]
cdef
PackedStruct
packedstructs
[
20
]
cdef
char
chars
[
20
]
cdef
signed
char
chars
[
20
]
cdef
short
shorts
[
20
]
cdef
int
ints
[
20
]
cdef
long
long
longlongs
[
20
]
...
...
@@ -369,7 +369,7 @@ def test_coerce_to_numpy():
index
(
<
NestedStruct
[:
4
,
:
5
]
>
<
NestedStruct
*>
nestedstructs
)
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
(
<
int
[:
4
,
:
5
]
>
<
int
*>
ints
)
index
(
<
long
long
[:
4
,
:
5
]
>
<
long
long
*>
longlongs
)
...
...
@@ -424,7 +424,7 @@ def acquire_release_cycle(obj):
cdef
packed
struct
StructArray
:
int
a
[
4
]
char
b
[
5
]
signed
char
b
[
5
]
@
testcase_numpy_1_5
def
test_memslice_structarray
(
data
,
dtype
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment