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
Kirill Smelkov
cython
Commits
a668f224
Commit
a668f224
authored
Aug 07, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Py3 test fixes
parent
61dd2d7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tests/run/builtinnames.pyx
tests/run/builtinnames.pyx
+4
-4
No files found.
tests/run/builtinnames.pyx
View file @
a668f224
...
@@ -2,21 +2,21 @@ __doc__ = u"""
...
@@ -2,21 +2,21 @@ __doc__ = u"""
>>> test_c('abc')
>>> test_c('abc')
fileabc
fileabc
typeabc
typeabc
>>> print
test_file_py('abc'
)
>>> print
(test_file_py('abc')
)
abc
abc
>>> print
range('abc'
)
>>> print
(range('abc')
)
rangeabc
rangeabc
"""
"""
def
test_file_py
(
file
):
def
test_file_py
(
file
):
assert
isinstance
(
file
,
str
),
\
assert
isinstance
(
file
,
str
),
\
"not a string, found '%s' instead"
%
file
.
__class__
.
__name__
u
"not a string, found '%s' instead"
%
file
.
__class__
.
__name__
return
file
return
file
cdef
test_file_c
(
file
):
cdef
test_file_c
(
file
):
assert
isinstance
(
file
,
str
),
\
assert
isinstance
(
file
,
str
),
\
"not a string, found '%s' instead"
%
file
.
__class__
.
__name__
u
"not a string, found '%s' instead"
%
file
.
__class__
.
__name__
return
u'file'
+
file
return
u'file'
+
file
...
...
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