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
3392afe9
Commit
3392afe9
authored
Jun 01, 2017
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test for bad cimported module attributes.
parent
d17e481c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
tests/errors/cimport_attributes.pyx
tests/errors/cimport_attributes.pyx
+25
-0
No files found.
tests/errors/cimport_attributes.pyx
0 → 100644
View file @
3392afe9
# mode: error
cimport
libcpp
print
libcpp
.
no_such_attribute
cimport
libcpp.map
print
libcpp
.
map
.
no_such_attribute
from
libcpp
cimport
vector
print
vector
.
no_such_attribute
from
libcpp
cimport
vector
as
my_vector
print
my_vector
.
no_such_attribute
from
libcpp
cimport
vector
as
my_vector_with_shadow
from
libcpp
import
vector
as
my_vector_with_shadow
print
my_vector_with_shadow
.
no_such_attribute
# OK (if such a module existed at runtime)
_ERRORS
=
u"""
5:12: cimported module has no attribute 'no_such_attribute'
8:16: cimported module has no attribute 'no_such_attribute'
11:12: cimported module has no attribute 'no_such_attribute'
14:15: cimported module has no attribute 'no_such_attribute'
"""
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