HomePhabricator

test: use zero-argument super() shortcut (Python 3.0+)

Description

test: use zero-argument super() shortcut (Python 3.0+)

Summary:

as defined in PEP 3135:

"The new syntax:

super()

is equivalent to:

super(__class__, <firstarg>)

where class is the class that the method was defined in, and <firstarg> is
the first parameter of the method (normally self for instance methods, and cls
for class methods)."

This is a backport of Core PR18585

Test Plan:
grep "super(.*, self)" test/functional/*
ninja check-functional-extended

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D8988

Details

Provenance
Sebastian Falbesoner <sebastian.falbesoner@gmail.com>Authored on Jan 21 2021, 07:33
PiRKCommitted on Jan 21 2021, 07:33
abc-botPushed on Jan 21 2021, 07:39
Reviewer
Restricted Project
Differential Revision
D8988: test: use zero-argument super() shortcut (Python 3.0+)
Parents
rABCaf8996b12751: [Automated] Update timing.json
Branches
Unknown
Tags
Unknown