Suppress no-member pylint warning in test_proofofwork, fix typo from a84168f2

This commit is contained in:
Lee Miller 2025-01-19 15:16:49 +02:00
parent 73119af407
commit 00d9afb96b
Signed by untrusted user: lee.miller
GPG Key ID: 4F97A5EA88F4AB63
2 changed files with 2 additions and 1 deletions

View File

@ -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()

View File

@ -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='+')))