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
021322cf
Commit
021322cf
authored
Aug 21, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Py3 test fix
parent
a22a4487
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
tests/run/embedsignatures.pyx
tests/run/embedsignatures.pyx
+10
-6
No files found.
tests/run/embedsignatures.pyx
View file @
021322cf
...
@@ -37,7 +37,7 @@ __doc__ = ur"""
...
@@ -37,7 +37,7 @@ __doc__ = ur"""
Existing string
Existing string
>>> print (Ext.m.__doc__)
>>> print (Ext.m.__doc__)
Ext.m(self, a='spam')
Ext.m(self, a=
u
'spam')
>>> print (Ext.get_int.__doc__)
>>> print (Ext.get_int.__doc__)
Ext.get_int(self) -> int
Ext.get_int(self) -> int
...
@@ -68,10 +68,10 @@ __doc__ = ur"""
...
@@ -68,10 +68,10 @@ __doc__ = ur"""
'with_doc_4(int a, str b, list c) -> str\n\n Existing string\n '
'with_doc_4(int a, str b, list c) -> str\n\n Existing string\n '
>>> f_sd.__doc__
>>> f_sd.__doc__
"f_sd(str s='spam')"
"f_sd(str s=
u
'spam')"
>>> cf_sd.__doc__
>>> cf_sd.__doc__
"cf_sd(str s='spam') -> str"
"cf_sd(str s=
u
'spam') -> str"
>>> types.__doc__
>>> types.__doc__
'types(Ext a, int b, unsigned short c, float d, e)'
'types(Ext a, int b, unsigned short c, float d, e)'
...
@@ -137,6 +137,10 @@ __doc__ = ur"""
...
@@ -137,6 +137,10 @@ __doc__ = ur"""
"""
"""
import
sys
if
sys
.
version_info
[
0
]
>=
3
:
__doc__
=
__doc__
.
replace
(
u"u'spam'"
,
u"'spam'"
)
cdef
class
Ext
:
cdef
class
Ext
:
def
__init__
(
self
,
a
,
b
,
c
=
None
):
def
__init__
(
self
,
a
,
b
,
c
=
None
):
...
@@ -173,7 +177,7 @@ cdef class Ext:
...
@@ -173,7 +177,7 @@ cdef class Ext:
"""Existing string"""
"""Existing string"""
pass
pass
def
m
(
self
,
a
=
'spam'
):
def
m
(
self
,
a
=
u
'spam'
):
pass
pass
cpdef
int
get_int
(
self
):
cpdef
int
get_int
(
self
):
...
@@ -215,10 +219,10 @@ cpdef str with_doc_4(int a, str b, list c):
...
@@ -215,10 +219,10 @@ cpdef str with_doc_4(int a, str b, list c):
"""
"""
return
b
return
b
def
f_sd
(
str
s
=
'spam'
):
def
f_sd
(
str
s
=
u
'spam'
):
return
s
return
s
cpdef
str
cf_sd
(
str
s
=
'spam'
):
cpdef
str
cf_sd
(
str
s
=
u
'spam'
):
return
s
return
s
cpdef
char
f_c
(
char
c
):
cpdef
char
f_c
(
char
c
):
...
...
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