aboutsummaryrefslogtreecommitdiff
path: root/test/functional/deprecated_rpc.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/deprecated_rpc.py')
-rwxr-xr-xtest/functional/deprecated_rpc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/deprecated_rpc.py b/test/functional/deprecated_rpc.py
index ec500ccbf9..19fd24edb9 100755
--- a/test/functional/deprecated_rpc.py
+++ b/test/functional/deprecated_rpc.py
@@ -4,7 +4,7 @@
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test deprecation of RPC calls."""
from test_framework.test_framework import BitcoinTestFramework
-from test_framework.util import assert_raises_jsonrpc
+from test_framework.util import assert_raises_rpc_error
class DeprecatedRpcTest(BitcoinTestFramework):
def set_test_params(self):
@@ -14,7 +14,7 @@ class DeprecatedRpcTest(BitcoinTestFramework):
def run_test(self):
self.log.info("estimatefee: Shows deprecated message")
- assert_raises_jsonrpc(-32, 'estimatefee is deprecated', self.nodes[0].estimatefee, 1)
+ assert_raises_rpc_error(-32, 'estimatefee is deprecated', self.nodes[0].estimatefee, 1)
self.log.info("Using -deprecatedrpc=estimatefee bypasses the error")
self.nodes[1].estimatefee(1)