mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-04 02:02:42 +02:00
test: convert simple equality asserts in excluded files
A few files still need to stay out of the later scripted diff because they contain more complicated assert shapes. Convert the straightforward equality checks in those files by hand first. Use a local import in `authproxy.py` so the change does not create an import cycle.
This commit is contained in:
@@ -144,7 +144,8 @@ class AuthServiceProxy():
|
||||
else:
|
||||
return response['result']
|
||||
else:
|
||||
assert response['jsonrpc'] == '2.0'
|
||||
from .util import assert_equal
|
||||
assert_equal(response['jsonrpc'], '2.0')
|
||||
if status != HTTPStatus.OK:
|
||||
raise JSONRPCException({
|
||||
'code': -342, 'message': 'non-200 HTTP status code'}, status)
|
||||
|
||||
Reference in New Issue
Block a user