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
dd0b10c7
Commit
dd0b10c7
authored
Jan 24, 2017
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work around numpy build formatting differences.
parent
a8e96fd3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
tests/run/numpy_test.pyx
tests/run/numpy_test.pyx
+12
-10
No files found.
tests/run/numpy_test.pyx
View file @
dd0b10c7
...
...
@@ -4,6 +4,7 @@
cimport
numpy
as
np
cimport
cython
import
re
import
sys
from
libc.stdlib
cimport
malloc
...
...
@@ -234,7 +235,7 @@ try:
8,16
>>> test_point_record()
array([(0.
0, 0.0), (1.0, -1.0), (2.0, -2.0
)],
array([(0.
, 0.), (1., -1.), (2., -2.
)],
dtype=[('x', '!f8'), ('y', '!f8')])
"""
...
...
@@ -518,7 +519,8 @@ def test_point_record():
for
i
in
range
(
3
):
test
[
i
].
x
=
i
test
[
i
].
y
=
-
i
print
repr
(
test
).
replace
(
'<'
,
'!'
).
replace
(
'>'
,
'!'
)
print
re
.
sub
(
r'\
.
0+\b'
,
'.'
,
repr
(
test
).
replace
(
'<'
,
'!'
).
replace
(
'>'
,
'!'
))
# Test fused np.ndarray dtypes and runtime dispatch
@
testcase
...
...
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