diff --git a/test/functional/rpc_blockchain.py b/test/functional/rpc_blockchain.py --- a/test/functional/rpc_blockchain.py +++ b/test/functional/rpc_blockchain.py @@ -107,7 +107,7 @@ assert_raises_rpc_error( -8, "Invalid block count: should be between 0 and the block's height - 1", - self.nodes[0].getchaintxstats, 201) + self.nodes[0].getchaintxstats, 201) def _test_gettxoutsetinfo(self): node = self.nodes[0] @@ -240,5 +240,6 @@ assert_equal( getblockinfo['nextblockhash'], getblockheaderinfo['nextblockhash']) + if __name__ == '__main__': BlockchainTest().main() diff --git a/test/functional/wallet_encryption.py b/test/functional/wallet_encryption.py --- a/test/functional/wallet_encryption.py +++ b/test/functional/wallet_encryption.py @@ -39,7 +39,7 @@ # Test that the wallet is encrypted assert_raises_rpc_error( -13, "Please enter the wallet passphrase with walletpassphrase first", - self.nodes[0].dumpprivkey, address) + self.nodes[0].dumpprivkey, address) # Check that walletpassphrase works self.nodes[0].walletpassphrase(passphrase, 2) @@ -49,7 +49,7 @@ time.sleep(2) assert_raises_rpc_error( -13, "Please enter the wallet passphrase with walletpassphrase first", - self.nodes[0].dumpprivkey, address) + self.nodes[0].dumpprivkey, address) # Test wrong passphrase assert_raises_rpc_error(-14, "wallet passphrase entered was incorrect", @@ -64,7 +64,7 @@ self.nodes[0].walletlock() assert_raises_rpc_error( -13, "Please enter the wallet passphrase with walletpassphrase first", - self.nodes[0].dumpprivkey, address) + self.nodes[0].dumpprivkey, address) assert_equal(self.nodes[0].getwalletinfo()['unlocked_until'], 0) # Test passphrase changes