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
a95d8f91
Commit
a95d8f91
authored
Jan 04, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
re-enable relaxed_strides test for pre-1.8 NumPy versions
parent
e1982505
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
tests/memoryview/relaxed_strides.pyx
tests/memoryview/relaxed_strides.pyx
+8
-1
No files found.
tests/memoryview/relaxed_strides.pyx
View file @
a95d8f91
...
@@ -26,8 +26,15 @@ See also:
...
@@ -26,8 +26,15 @@ See also:
import
numpy
as
np
import
numpy
as
np
NUMPY_HAS_RELAXED_STRIDES
=
np
.
ones
((
10
,
1
),
order
=
"C"
).
flags
.
f_contiguous
numpy_version
=
np
.
__version__
.
split
(
'.'
)[:
2
]
try
:
numpy_version
=
tuple
(
map
(
int
,
numpy_version
))
except
ValueError
:
numpy_version
=
(
20
,
0
)
NUMPY_HAS_RELAXED_STRIDES
=
(
numpy_version
<
(
1
,
8
)
or
np
.
ones
((
10
,
1
),
order
=
"C"
).
flags
.
f_contiguous
)
def
test_one_sized
(
array
):
def
test_one_sized
(
array
):
...
...
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