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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
8f586aa9
Commit
8f586aa9
authored
Jul 08, 2020
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable test in Py2.6.
parent
13eb4498
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
tests/memoryview/relaxed_strides.pyx
tests/memoryview/relaxed_strides.pyx
+8
-0
No files found.
tests/memoryview/relaxed_strides.pyx
View file @
8f586aa9
...
@@ -37,6 +37,13 @@ NUMPY_HAS_RELAXED_STRIDES = (
...
@@ -37,6 +37,13 @@ NUMPY_HAS_RELAXED_STRIDES = (
np
.
ones
((
10
,
1
),
order
=
"C"
).
flags
.
f_contiguous
)
np
.
ones
((
10
,
1
),
order
=
"C"
).
flags
.
f_contiguous
)
def
not_py26
(
f
):
import
sys
if
sys
.
version_info
<
(
2
,
7
):
return
lambda
a
:
None
return
f
def
test_one_sized
(
array
):
def
test_one_sized
(
array
):
"""
"""
>>> contig = np.ascontiguousarray(np.arange(10, dtype=np.double)[::100])
>>> contig = np.ascontiguousarray(np.arange(10, dtype=np.double)[::100])
...
@@ -74,6 +81,7 @@ def test_zero_sized_multidim_ccontig(array):
...
@@ -74,6 +81,7 @@ def test_zero_sized_multidim_ccontig(array):
cdef
double
[:,
:,
::
1
]
a
=
array
cdef
double
[:,
:,
::
1
]
a
=
array
return
a
return
a
@
not_py26
def
test_zero_sized_multidim_fcontig
(
array
):
def
test_zero_sized_multidim_fcontig
(
array
):
"""
"""
>>> contig = np.ascontiguousarray(np.zeros((4,4,4))[::2, 2:2, ::2])
>>> contig = np.ascontiguousarray(np.zeros((4,4,4))[::2, 2:2, ::2])
...
...
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