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
5151baf0
Commit
5151baf0
authored
Jul 11, 2014
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Py3-ism
parent
0369269d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/run/cpdef_enums_import.srctree
tests/run/cpdef_enums_import.srctree
+2
-2
No files found.
tests/run/cpdef_enums_import.srctree
View file @
5151baf0
...
@@ -34,12 +34,12 @@ from enums cimport *
...
@@ -34,12 +34,12 @@ from enums cimport *
# We can import enums with a star import.
# We can import enums with a star import.
from enums import *
from enums import *
print
dir(
)
print
(dir()
)
assert 'BAR' in dir() and 'FOO' in dir()
assert 'BAR' in dir() and 'FOO' in dir()
# enums not generated in the wrong module
# enums not generated in the wrong module
import no_enums
import no_enums
print
dir(no_enums
)
print
(dir(no_enums)
)
assert 'FOO' not in dir(no_enums)
assert 'FOO' not in dir(no_enums)
assert 'foo' not in dir(no_enums)
assert 'foo' not in dir(no_enums)
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