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
fb8b5c7e
Commit
fb8b5c7e
authored
Nov 07, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
failing test case for ticket #589
parent
3780a81c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
tests/bugs.txt
tests/bugs.txt
+1
-0
tests/run/bound_builtin_methods_T589.pyx
tests/run/bound_builtin_methods_T589.pyx
+33
-0
No files found.
tests/bugs.txt
View file @
fb8b5c7e
...
@@ -16,6 +16,7 @@ with_statement_module_level_T536
...
@@ -16,6 +16,7 @@ with_statement_module_level_T536
function_as_method_T494
function_as_method_T494
closure_inside_cdef_T554
closure_inside_cdef_T554
ipow_crash_T562
ipow_crash_T562
bound_builtin_methods_T589
# CPython regression tests that don't current work:
# CPython regression tests that don't current work:
...
...
tests/run/bound_builtin_methods_T589.pyx
0 → 100644
View file @
fb8b5c7e
cimport
cython
def
test_set_clear_bound
():
"""
>>> type(test_set_clear_bound()) is _set
True
>>> list(test_set_clear_bound())
[]
"""
cdef
set
s1
=
set
([
1
])
clear
=
s1
.
clear
clear
()
return
s1
text
=
u'ab jd sdflk as sa sadas asdas fsdf '
pipe_sep
=
u'|'
@
cython
.
test_assert_path_exists
(
"//SimpleCallNode"
,
"//SimpleCallNode//NameNode"
)
def
test_unicode_join_bound
(
unicode
sep
,
l
):
"""
>>> l = text.split()
>>> len(l)
8
>>> print( pipe_sep.join(l) )
ab|jd|sdflk|as|sa|sadas|asdas|fsdf
>>> print( test_unicode_join_bound(pipe_sep, l) )
ab|jd|sdflk|as|sa|sadas|asdas|fsdf
"""
join
=
sep
.
join
return
join
(
l
)
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