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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
a22a763f
Commit
a22a763f
authored
Nov 02, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Py2.4 test fix
parent
9dd53a87
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
tests/run/slice2.pyx
tests/run/slice2.pyx
+8
-8
No files found.
tests/run/slice2.pyx
View file @
a22a763f
...
@@ -7,9 +7,9 @@ def f(obj1, obj2, obj3, obj4):
...
@@ -7,9 +7,9 @@ def f(obj1, obj2, obj3, obj4):
True
True
>>> l is f(1, l, 2, 3)
>>> l is f(1, l, 2, 3)
False
False
>>> f(1, 42, 2, 3)
>>> f(1, 42, 2, 3)
#doctest: +ELLIPSIS
Traceback (most recent call last):
Traceback (most recent call last):
TypeError:
'int' object is unsliceable
TypeError:
...unsliceable...
"""
"""
obj1
=
obj2
[:]
obj1
=
obj2
[:]
return
obj1
return
obj1
...
@@ -18,9 +18,9 @@ def g(obj1, obj2, obj3, obj4):
...
@@ -18,9 +18,9 @@ def g(obj1, obj2, obj3, obj4):
"""
"""
>>> g(1, [1,2,3,4], 2, 3)
>>> g(1, [1,2,3,4], 2, 3)
[3, 4]
[3, 4]
>>> g(1, 42, 2, 3)
>>> g(1, 42, 2, 3)
#doctest: +ELLIPSIS
Traceback (most recent call last):
Traceback (most recent call last):
TypeError:
'int' object is unsliceable
TypeError:
...unsliceable...
"""
"""
obj1
=
obj2
[
obj3
:]
obj1
=
obj2
[
obj3
:]
return
obj1
return
obj1
...
@@ -29,9 +29,9 @@ def h(obj1, obj2, obj3, obj4):
...
@@ -29,9 +29,9 @@ def h(obj1, obj2, obj3, obj4):
"""
"""
>>> h(1, [1,2,3,4], 2, 3)
>>> h(1, [1,2,3,4], 2, 3)
[1, 2, 3]
[1, 2, 3]
>>> h(1, 42, 2, 3)
>>> h(1, 42, 2, 3)
#doctest: +ELLIPSIS
Traceback (most recent call last):
Traceback (most recent call last):
TypeError:
'int' object is unsliceable
TypeError:
...unsliceable...
"""
"""
obj1
=
obj2
[:
obj4
]
obj1
=
obj2
[:
obj4
]
return
obj1
return
obj1
...
@@ -40,9 +40,9 @@ def j(obj1, obj2, obj3, obj4):
...
@@ -40,9 +40,9 @@ def j(obj1, obj2, obj3, obj4):
"""
"""
>>> j(1, [1,2,3,4], 2, 3)
>>> j(1, [1,2,3,4], 2, 3)
[3]
[3]
>>> j(1, 42, 2, 3)
>>> j(1, 42, 2, 3)
#doctest: +ELLIPSIS
Traceback (most recent call last):
Traceback (most recent call last):
TypeError:
'int' object is unsliceable
TypeError:
...unsliceable...
"""
"""
obj1
=
obj2
[
obj3
:
obj4
]
obj1
=
obj2
[
obj3
:
obj4
]
return
obj1
return
obj1
...
...
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