flake8 cleanup

This commit is contained in:
Eirik Ogilvie-Wigley 2019-01-14 14:00:24 -07:00
parent 8df7a073ce
commit 23b329d912
2 changed files with 23 additions and 21 deletions

View File

@ -16,6 +16,7 @@ from test_framework.util import initialize_chain_clean, start_nodes, \
import time, cStringIO import time, cStringIO
from binascii import hexlify, unhexlify from binascii import hexlify, unhexlify
class TestNode(NodeConnCB): class TestNode(NodeConnCB):
def __init__(self): def __init__(self):
NodeConnCB.__init__(self) NodeConnCB.__init__(self)
@ -78,6 +79,7 @@ class TestNode(NodeConnCB):
self.ping_counter += 1 self.ping_counter += 1
return received_pong return received_pong
class TxExpiringSoonTest(BitcoinTestFramework): class TxExpiringSoonTest(BitcoinTestFramework):
def setup_chain(self): def setup_chain(self):
@ -86,9 +88,7 @@ class TxExpiringSoonTest(BitcoinTestFramework):
def setup_network(self): def setup_network(self):
self.nodes = start_nodes(3, self.options.tmpdir, self.nodes = start_nodes(3, self.options.tmpdir,
extra_args=[[ extra_args=[['-nuparams=5ba81b19:10']] * 3)
'-nuparams=5ba81b19:10',
]] * 3)
connect_nodes_bi(self.nodes, 0, 1) connect_nodes_bi(self.nodes, 0, 1)
# We don't connect node 2 # We don't connect node 2
@ -306,5 +306,6 @@ class TxExpiringSoonTest(BitcoinTestFramework):
[c.disconnect_node() for c in connections] [c.disconnect_node() for c in connections]
if __name__ == '__main__': if __name__ == '__main__':
TxExpiringSoonTest().main() TxExpiringSoonTest().main()

View File

@ -131,5 +131,6 @@ class TxExpiryDoSTest(BitcoinTestFramework):
[c.disconnect_node() for c in connections] [c.disconnect_node() for c in connections]
if __name__ == '__main__': if __name__ == '__main__':
TxExpiryDoSTest().main() TxExpiryDoSTest().main()