mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-27 22:34:18 +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 urllib.parse
|
||||
|
||||
from .util import JSONRPCException
|
||||
from .util import JSONRPCException, assert_equal
|
||||
|
||||
HTTP_TIMEOUT = 30
|
||||
USER_AGENT = "AuthServiceProxy/0.1"
|
||||
@@ -139,7 +139,6 @@ class AuthServiceProxy():
|
||||
else:
|
||||
return response['result']
|
||||
else:
|
||||
from .util import assert_equal
|
||||
assert_equal(response['jsonrpc'], '2.0')
|
||||
if status != HTTPStatus.OK:
|
||||
raise JSONRPCException({
|
||||
|
||||
Reference in New Issue
Block a user