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
f7af42b5
Commit
f7af42b5
authored
Sep 26, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extend test.
parent
1a0c1320
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
tests/run/pure_pxd.srctree
tests/run/pure_pxd.srctree
+12
-0
No files found.
tests/run/pure_pxd.srctree
View file @
f7af42b5
...
...
@@ -37,6 +37,14 @@ class ExtTypeAttributes(object):
self.b = [1, 2, 3]
def func(a, b, c):
"""
>>> func(1, 2, 3)
6
"""
return a + b + c
def test():
import os.path
assert not os.path.basename(__file__).endswith('.py'), __file__
...
...
@@ -46,6 +54,7 @@ def test():
assert not ExtTypePass().__doc__, ExtTypePass().__doc__
assert ExtTypeDocstring().__doc__ == "huhu!", ExtTypeDocstring().__doc__
assert ExtTypePxdDocstring().__doc__ == "ho, ho, ho!", ExtTypePxdDocstring().__doc__
assert '>>> ' in func.__doc__
import doctest
doctest.testmod(verbose=True)
...
...
@@ -64,3 +73,6 @@ cdef class ExtTypePxdDocstring:
cdef class ExtTypeAttributes:
cdef int a
cdef readonly list b
cpdef int func(x, int y, z) except? -1 # argument names should not matter, types should
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