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
Boxiang Sun
cython
Commits
c14df60d
Commit
c14df60d
authored
Dec 16, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Py3 test fixes
parent
6344ec54
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
26 deletions
+26
-26
tests/run/builtin_subtype_methods_T653.pyx
tests/run/builtin_subtype_methods_T653.pyx
+24
-24
tests/run/function_as_method_T494.pyx
tests/run/function_as_method_T494.pyx
+1
-1
tests/run/function_as_method_py_T494.py
tests/run/function_as_method_py_T494.py
+1
-1
No files found.
tests/run/builtin_subtype_methods_T653.pyx
View file @
c14df60d
...
...
@@ -31,12 +31,12 @@ cdef class MyDict(dict):
l
.
sort
()
return
l
def
test_
iteritem
s
(
self
):
def
test_
value
s
(
self
):
"""
>>> MyDict(a=1, b=2).test_
iteritem
s()
[
('a', 1), ('b', 2)
]
>>> MyDict(a=1, b=2).test_
value
s()
[
1, 2
]
"""
l
=
[
(
key
,
value
)
for
key
,
value
in
self
.
iteritem
s
()
]
l
=
[
v
for
v
in
self
.
value
s
()
]
l
.
sort
()
return
l
...
...
@@ -52,12 +52,12 @@ cdef class MyDictFinal(dict):
l
.
sort
()
return
l
def
test_
iteritem
s
(
self
):
def
test_
value
s
(
self
):
"""
>>> MyDictFinal(a=1, b=2).test_
iteritem
s()
[
('a', 1), ('b', 2)
]
>>> MyDictFinal(a=1, b=2).test_
value
s()
[
1, 2
]
"""
l
=
[
(
key
,
value
)
for
key
,
value
in
self
.
iteritem
s
()
]
l
=
[
v
for
v
in
self
.
value
s
()
]
l
.
sort
()
return
l
...
...
@@ -74,12 +74,12 @@ cdef class MyDict2(MyDict):
l
.
sort
()
return
l
def
test_
iteritem
s
(
self
):
def
test_
value
s
(
self
):
"""
>>> MyDict2(a=1, b=2).test_
iteritem
s()
[
('a', 1), ('b', 2)
]
>>> MyDict2(a=1, b=2).test_
value
s()
[
1, 2
]
"""
l
=
[
(
key
,
value
)
for
key
,
value
in
self
.
iteritem
s
()
]
l
=
[
v
for
v
in
self
.
value
s
()
]
l
.
sort
()
return
l
...
...
@@ -95,12 +95,12 @@ cdef class MyDict2Final(MyDict):
l
.
sort
()
return
l
def
test_
iteritem
s
(
self
):
def
test_
value
s
(
self
):
"""
>>> MyDict2Final(a=1, b=2).test_
iteritem
s()
[
('a', 1), ('b', 2)
]
>>> MyDict2Final(a=1, b=2).test_
value
s()
[
1, 2
]
"""
l
=
[
(
key
,
value
)
for
key
,
value
in
self
.
iteritem
s
()
]
l
=
[
v
for
v
in
self
.
value
s
()
]
l
.
sort
()
return
l
...
...
@@ -121,12 +121,12 @@ cdef class MyDictOverride(dict):
l
.
sort
()
return
l
def
test_
iteritem
s
(
self
):
def
test_
value
s
(
self
):
"""
>>> MyDictOverride(a=1, b=2).test_
iteritem
s()
[
('a', 1), ('b', 2)
]
>>> MyDictOverride(a=1, b=2).test_
value
s()
[
1, 2
]
"""
l
=
[
(
key
,
value
)
for
key
,
value
in
self
.
iteritem
s
()
]
l
=
[
v
for
v
in
self
.
value
s
()
]
l
.
sort
()
return
l
...
...
@@ -147,11 +147,11 @@ cdef class MyDictOverride2(MyDict):
l
.
sort
()
return
l
def
test_
iteritem
s
(
self
):
def
test_
value
s
(
self
):
"""
>>> MyDictOverride2(a=1, b=2).test_
iteritem
s()
[
('a', 1), ('b', 2)
]
>>> MyDictOverride2(a=1, b=2).test_
value
s()
[
1, 2
]
"""
l
=
[
(
key
,
value
)
for
key
,
value
in
self
.
iteritem
s
()
]
l
=
[
v
for
v
in
self
.
value
s
()
]
l
.
sort
()
return
l
tests/run/function_as_method_T494.pyx
View file @
c14df60d
...
...
@@ -3,7 +3,7 @@
__doc__
=
"""
>>> A.foo = foo
>>>
print
A().foo()
>>> A().foo()
True
"""
...
...
tests/run/function_as_method_py_T494.py
View file @
c14df60d
...
...
@@ -2,7 +2,7 @@
__doc__
=
"""
>>> A.foo = foo
>>>
print
A().foo()
>>> A().foo()
True
"""
...
...
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