Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
206cd1c2
Commit
206cd1c2
authored
Jun 19, 2011
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix uglyNamingConvention
parent
a977acc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
Lib/test/test_super.py
Lib/test/test_super.py
+7
-7
No files found.
Lib/test/test_super.py
View file @
206cd1c2
...
...
@@ -44,33 +44,33 @@ class G(A):
class
TestSuper
(
unittest
.
TestCase
):
def
test
BasicsW
orking
(
self
):
def
test
_basics_w
orking
(
self
):
self
.
assertEqual
(
D
().
f
(),
'ABCD'
)
def
test
ClassGetattrW
orking
(
self
):
def
test
_class_getattr_w
orking
(
self
):
self
.
assertEqual
(
D
.
f
(
D
()),
'ABCD'
)
def
test
SubclassNoOverrideW
orking
(
self
):
def
test
_subclass_no_override_w
orking
(
self
):
self
.
assertEqual
(
E
().
f
(),
'ABCD'
)
self
.
assertEqual
(
E
.
f
(
E
()),
'ABCD'
)
def
test
UnboundMethodTransferW
orking
(
self
):
def
test
_unbound_method_transfer_w
orking
(
self
):
self
.
assertEqual
(
F
().
f
(),
'ABCD'
)
self
.
assertEqual
(
F
.
f
(
F
()),
'ABCD'
)
def
test
ClassMethodsStillW
orking
(
self
):
def
test
_class_methods_still_w
orking
(
self
):
self
.
assertEqual
(
A
.
cm
(),
(
A
,
'A'
))
self
.
assertEqual
(
A
().
cm
(),
(
A
,
'A'
))
self
.
assertEqual
(
G
.
cm
(),
(
G
,
'A'
))
self
.
assertEqual
(
G
().
cm
(),
(
G
,
'A'
))
def
test
SuperInClassMethodsW
orking
(
self
):
def
test
_super_in_class_methods_w
orking
(
self
):
d
=
D
()
self
.
assertEqual
(
d
.
cm
(),
(
d
,
(
D
,
(
D
,
(
D
,
'A'
),
'B'
),
'C'
),
'D'
))
e
=
E
()
self
.
assertEqual
(
e
.
cm
(),
(
e
,
(
E
,
(
E
,
(
E
,
'A'
),
'B'
),
'C'
),
'D'
))
def
test
SuperWithC
losure
(
self
):
def
test
_super_with_c
losure
(
self
):
# Issue4360: super() did not work in a function that
# contains a closure
class
E
(
A
):
...
...
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