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
Boxiang Sun
cython
Commits
4c78f464
Commit
4c78f464
authored
May 06, 2009
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor testcase fixes
parent
012f1937
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
tests/run/cdef_setitem_T284.pyx
tests/run/cdef_setitem_T284.pyx
+1
-1
tests/run/numpy_test.pyx
tests/run/numpy_test.pyx
+2
-2
No files found.
tests/run/cdef_setitem_T284.pyx
View file @
4c78f464
...
...
@@ -6,7 +6,7 @@ __doc__ = u'''
>>> test_list(range(11), "invalid index", None)
Traceback (most recent call last):
...
TypeError: list indices must be integers
, not str
TypeError: list indices must be integers
'''
def
no_cdef
():
lst
=
range
(
11
)
...
...
tests/run/numpy_test.pyx
View file @
4c78f464
...
...
@@ -190,7 +190,7 @@ try:
>>> test_bad_cast()
Traceback (most recent call last):
...
ValueError: Item size of buffer (1 byte) does not match size of '
long' (8
bytes)
ValueError: Item size of buffer (1 byte) does not match size of '
int' (4
bytes)
"""
except
:
...
...
@@ -350,7 +350,7 @@ def test_good_cast():
def
test_bad_cast
():
# This should raise an exception
cdef
np
.
ndarray
[
long
,
cast
=
True
]
arr
=
np
.
array
([
1
],
dtype
=
b'b'
)
cdef
np
.
ndarray
[
int
,
cast
=
True
]
arr
=
np
.
array
([
1
],
dtype
=
b'b'
)
cdef
packed
struct
PackedStruct
:
char
a
...
...
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