Skip to content

Commit

Permalink
[tests] fix TestNode.__getattr__() method
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewbery committed Nov 8, 2017
1 parent 77546a3 commit b86c1cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/test_framework/test_node.py
Expand Up @@ -63,10 +63,10 @@ def __init__(self, i, dirname, extra_args, rpchost, timewait, binary, stderr, mo
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."""
Expand Down

0 comments on commit b86c1cd

Please sign in to comment.