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
93c73c15
Commit
93c73c15
authored
Feb 13, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Py3 test issue
parent
bb1fe296
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
tests/run/ct_DEF.pyx
tests/run/ct_DEF.pyx
+5
-3
No files found.
tests/run/ct_DEF.pyx
View file @
93c73c15
...
...
@@ -11,7 +11,7 @@ if sys.version_info[0] < 3:
__doc__
=
__doc__
.
replace
(
u" b'"
,
u" '"
)
DEF
TUPLE
=
(
1
,
2
,
"buckle my shoe"
)
DEF
TUPLE
=
(
1
,
2
,
u
"buckle my shoe"
)
DEF
TRUE_FALSE
=
(
True
,
False
)
DEF
CHAR
=
c
'x'
...
...
@@ -96,8 +96,10 @@ def s():
@
cython
.
test_assert_path_exists
(
'//TupleNode'
)
def
constant_tuple
():
"""
>>> constant_tuple()
(1, 2, 'buckle my shoe')
>>> constant_tuple()[:-1]
(1, 2)
>>> print(constant_tuple()[-1])
buckle my shoe
"""
cdef
object
t
=
TUPLE
return
t
...
...
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