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

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 commit is contained in:
Sebastian Falbesoner
2020-04-10 17:39:36 +02:00
parent 5f19155e5b
commit 0956e46bff
3 changed files with 9 additions and 9 deletions

View File

@ -29,7 +29,7 @@ class TxnMallTest(BitcoinTestFramework):
def setup_network(self):
# Start with split network:
super(TxnMallTest, self).setup_network()
super().setup_network()
disconnect_nodes(self.nodes[1], 2)
disconnect_nodes(self.nodes[2], 1)