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
d5419f9e
Commit
d5419f9e
authored
Dec 03, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test case
parent
42da7405
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tests/errors/e_cstruct.pyx
tests/errors/e_cstruct.pyx
+4
-4
No files found.
tests/errors/e_cstruct.pyx
View file @
d5419f9e
...
...
@@ -15,17 +15,17 @@ cdef void eggs(Spam s):
j
=
s
.
k
# error - undef attribute
j
=
s
.
p
# type error
s
.
p
=
j
# type error
j
=
j
.
i
#
error - no attributes
j
.
i
=
j
#
error - no attributes
j
=
j
.
i
#
no error - coercion to Python object
j
.
i
=
j
#
no error - coercion to Python object
j
=
gp
.
x
# error - incomplete type
gp
.
x
=
j
# error - incomplete type
_ERRORS
=
u"""
5:36: C struct/union member cannot be a Python object
15:6: Object of type 'Spam' has no attribute 'k'
16:6: Cannot assign type 'float *[42]' to 'int'
17:21: Cannot assign type 'int' to 'float *[42]'
18:6: Object of type 'int' has no attribute 'i'
19:2: Object of type 'int' has no attribute 'i'
20:7: Cannot select attribute of incomplete type 'Grail'
21:3: Cannot select attribute of incomplete type 'Grail'
"""
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