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
719a42a3
Commit
719a42a3
authored
Aug 25, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extend CPython C-API test to at least include (and thus parser) all .pxd files.
parent
48ee775f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
tests/run/cython_includes.pyx
tests/run/cython_includes.pyx
+45
-0
No files found.
tests/run/cython_includes.pyx
View file @
719a42a3
...
...
@@ -4,6 +4,50 @@ from cpython cimport PyType_Check
from
cpython
cimport
PyType_Check
as
PyType_Check2
from
cpython.type
cimport
PyType_Check
as
PyType_Check3
# Make sure we can cimport all .pxd files.
cimport
cpython.array
cimport
cpython.bool
cimport
cpython.buffer
cimport
cpython.bytearray
cimport
cpython.bytes
cimport
cpython.ceval
cimport
cpython.cobject
cimport
cpython.complex
cimport
cpython.datetime
cimport
cpython.dict
cimport
cpython.exc
cimport
cpython.float
cimport
cpython.function
cimport
cpython.getargs
cimport
cpython.instance
cimport
cpython.int
cimport
cpython.iterator
cimport
cpython.list
cimport
cpython.long
cimport
cpython.longintrepr
cimport
cpython.mapping
cimport
cpython.mem
cimport
cpython.method
cimport
cpython.module
cimport
cpython.number
cimport
cpython.object
cimport
cpython.oldbuffer
cimport
cpython.pycapsule
cimport
cpython.pylifecycle
cimport
cpython.pystate
cimport
cpython.pythread
cimport
cpython.ref
cimport
cpython.sequence
cimport
cpython.set
cimport
cpython.slice
cimport
cpython.string
cimport
cpython.tuple
cimport
cpython.type
cimport
cpython.unicode
cimport
cpython.version
cimport
cpython.weakref
def
libc_cimports
():
"""
>>> libc_cimports()
...
...
@@ -13,6 +57,7 @@ def libc_cimports():
sprintf
(
buf
,
"%s"
,
b'hello'
)
print
(
<
object
>
buf
).
decode
(
'ASCII'
)
def
cpython_cimports
():
"""
>>> cpython_cimports()
...
...
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