mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-05 10:42:13 +02:00
test: remove the lazy import of util in authproxy
This lazy import prompted the removal of the circular dependency, so remove it now that we can.
This commit is contained in:
@@ -44,7 +44,7 @@ import socket
|
|||||||
import time
|
import time
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
|
|
||||||
from .util import JSONRPCException
|
from .util import JSONRPCException, assert_equal
|
||||||
|
|
||||||
HTTP_TIMEOUT = 30
|
HTTP_TIMEOUT = 30
|
||||||
USER_AGENT = "AuthServiceProxy/0.1"
|
USER_AGENT = "AuthServiceProxy/0.1"
|
||||||
@@ -139,7 +139,6 @@ class AuthServiceProxy():
|
|||||||
else:
|
else:
|
||||||
return response['result']
|
return response['result']
|
||||||
else:
|
else:
|
||||||
from .util import assert_equal
|
|
||||||
assert_equal(response['jsonrpc'], '2.0')
|
assert_equal(response['jsonrpc'], '2.0')
|
||||||
if status != HTTPStatus.OK:
|
if status != HTTPStatus.OK:
|
||||||
raise JSONRPCException({
|
raise JSONRPCException({
|
||||||
|
|||||||
Reference in New Issue
Block a user