aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2017-10-20 09:27:55 -0400
committerJohn Newbery <john@johnnewbery.com>2017-11-08 09:04:02 -0500
commitb86c1cd20837ae459b7c11c1defb5336e41509d2 (patch)
tree9bdd69be172427f23aebe864362550db497eb64f /test
parent77546a3182e5df622aa99446fc4ba8118db58351 (diff)
[tests] fix TestNode.__getattr__() method
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/test_framework/test_node.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/test_framework/test_node.py b/test/functional/test_framework/test_node.py
index 12dab57a02..41c31c2d3d 100755
--- a/test/functional/test_framework/test_node.py
+++ b/test/functional/test_framework/test_node.py
@@ -63,10 +63,10 @@ class TestNode():
self.url = None
self.log = logging.getLogger('TestFramework.node%d' % i)
- def __getattr__(self, *args, **kwargs):
+ def __getattr__(self, name):
"""Dispatches any unrecognised messages to the RPC connection."""
assert self.rpc_connected and self.rpc is not None, "Error: no RPC connection"
- return self.rpc.__getattr__(*args, **kwargs)
+ return getattr(self.rpc, name)
def start(self, extra_args=None, stderr=None):
"""Start the node."""