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
Gwenaël Samain
cython
Commits
259e666b
Commit
259e666b
authored
Oct 09, 2011
by
Mark Florisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memoryview error test
parent
69b2e1a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+1
-1
tests/errors/memview_declarations.pyx
tests/errors/memview_declarations.pyx
+1
-1
No files found.
Cython/Compiler/PyrexTypes.py
View file @
259e666b
...
...
@@ -720,7 +720,7 @@ class MemoryViewSliceType(PyrexType):
axes_code_list
.
append
(
":"
)
else
:
if
flag
==
'contiguous'
:
have_follow
=
[
p
for
a
,
p
in
self
.
axes
[
idx
-
1
:
idx
+
1
]
have_follow
=
[
p
for
a
,
p
in
self
.
axes
[
idx
-
1
:
idx
+
2
]
if
p
==
'follow'
]
if
have_follow
or
self
.
ndim
==
1
:
flag
=
'1'
...
...
tests/errors/memview_declarations.pyx
View file @
259e666b
...
...
@@ -56,7 +56,7 @@ _ERRORS = u'''
20:22: Invalid axis specification.
21:25: Invalid axis specification.
22:22: no expressions allowed in axis spec, only names and literals.
25:51: Memoryview 'object[::
contiguous, :]' not conformable to memoryview 'object[:, ::contiguous
]'.
25:51: Memoryview 'object[::
1, :]' not conformable to memoryview 'object[:, ::1
]'.
28:36: Different base types for memoryviews (int, Python object)
31:9: Dimension may not be contiguous
37:9: Only one direct contiguous axis may be specified.
...
...
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