Auto merge of #2826 - str4d:pyflakes-warnings, r=str4d

Fix pyflakes warnings in zkey_import_export RPC test
This commit is contained in:
Homu
2017-12-21 10:53:32 -08:00

View File

@@ -65,7 +65,7 @@ class ZkeyImportExportTest (BitcoinTestFramework):
def z_send(from_node, from_addr, to_addr, amount): def z_send(from_node, from_addr, to_addr, amount):
opid = from_node.z_sendmany(from_addr, [{"address": to_addr, "amount": Decimal(amount)}]) opid = from_node.z_sendmany(from_addr, [{"address": to_addr, "amount": Decimal(amount)}])
txid = self.wait_and_assert_operationid_status(from_node, opid) self.wait_and_assert_operationid_status(from_node, opid)
self.sync_all() self.sync_all()
miner.generate(1) miner.generate(1)
self.sync_all() self.sync_all()
@@ -112,12 +112,9 @@ class ZkeyImportExportTest (BitcoinTestFramework):
# Shield Alice's coinbase funds to her zaddr # Shield Alice's coinbase funds to her zaddr
alice_zaddr = alice.z_getnewaddress() alice_zaddr = alice.z_getnewaddress()
res = alice.z_shieldcoinbase("*", alice_zaddr) res = alice.z_shieldcoinbase("*", alice_zaddr)
txid = self.wait_and_assert_operationid_status(alice, res['opid']) self.wait_and_assert_operationid_status(alice, res['opid'])
miner.generate(6) miner.generate(6)
self.sync_all() self.sync_all()
# List funds
funds = alice.z_listreceivedbyaddress(alice_zaddr)
# print("Alice's funds after shield", funds)
# Now get a pristine z-address for receiving transfers: # Now get a pristine z-address for receiving transfers:
bob_zaddr = bob.z_getnewaddress() bob_zaddr = bob.z_getnewaddress()