Suppress no-member pylint warning in test_proofofwork, fix typo from a84168f2
This commit is contained in:
parent
73119af407
commit
00d9afb96b
|
@ -343,7 +343,7 @@ def resetPoW():
|
|||
|
||||
def init():
|
||||
"""Initialise PoW"""
|
||||
# pylint: disable=broad-exception-caught,disable=global-statement
|
||||
# pylint: disable=broad-exception-caught,global-statement
|
||||
global bitmsglib, bmpow
|
||||
|
||||
openclpow.initCL()
|
||||
|
|
|
@ -76,6 +76,7 @@ class TestProofofwork(TestProofofworkBase):
|
|||
# pylint: disable=import-outside-toplevel
|
||||
from class_singleWorker import singleWorker
|
||||
|
||||
# pylint: disable=no-member
|
||||
with self.assertLogs('default') as cm:
|
||||
self.assertTrue(protocol.isProofOfWorkSufficient(
|
||||
singleWorker._doPOWDefaults(payload, TTL, log_prefix='+')))
|
||||
|
|
Reference in New Issue
Block a user