diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-01-18 10:45:52 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-01-18 10:46:01 +0100 |
commit | 3ec5bb0a6e2ca3474fa90ce1d52a91a83b41a34c (patch) | |
tree | 68e6f64863b61a677593f837f03dbda0dd07582b /qa/rpc-tests/nodehandling.py | |
parent | 5e00147838b0585aebdfd7533951f8708639bc9b (diff) | |
parent | 7777994846cdb9b9cf69e391a33eeed30393bbcf (diff) |
Merge pull request #7335
7777994 [qa] Fix pyton syntax in rpc tests (MarcoFalke)
Diffstat (limited to 'qa/rpc-tests/nodehandling.py')
-rwxr-xr-x | qa/rpc-tests/nodehandling.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/qa/rpc-tests/nodehandling.py b/qa/rpc-tests/nodehandling.py index 3239dd0339..c6c8c436e9 100755 --- a/qa/rpc-tests/nodehandling.py +++ b/qa/rpc-tests/nodehandling.py @@ -9,7 +9,6 @@ from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * -import base64 try: import http.client as httplib @@ -54,7 +53,7 @@ class NodeHandlingTest (BitcoinTestFramework): self.nodes[2].setban("127.0.0.0/24", "add") self.nodes[2].setban("192.168.0.1", "add", 1) #ban for 1 seconds self.nodes[2].setban("2001:4d48:ac57:400:cacf:e9ff:fe1d:9c63/19", "add", 1000) #ban for 1000 seconds - listBeforeShutdown = self.nodes[2].listbanned(); + listBeforeShutdown = self.nodes[2].listbanned() assert_equal("192.168.0.1/32", listBeforeShutdown[2]['address']) #must be here time.sleep(2) #make 100% sure we expired 192.168.0.1 node time @@ -62,7 +61,7 @@ class NodeHandlingTest (BitcoinTestFramework): stop_node(self.nodes[2], 2) self.nodes[2] = start_node(2, self.options.tmpdir) - listAfterShutdown = self.nodes[2].listbanned(); + listAfterShutdown = self.nodes[2].listbanned() assert_equal("127.0.0.0/24", listAfterShutdown[0]['address']) assert_equal("127.0.0.0/32", listAfterShutdown[1]['address']) assert_equal("/19" in listAfterShutdown[2]['address'], True) |