Skip to content

Commit 00d9afb

Browse files
author
Lee Miller
committed
Suppress no-member pylint warning in test_proofofwork, fix typo from a84168f
1 parent 73119af commit 00d9afb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/proofofwork.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def resetPoW():
343343

344344
def init():
345345
"""Initialise PoW"""
346-
# pylint: disable=broad-exception-caught,disable=global-statement
346+
# pylint: disable=broad-exception-caught,global-statement
347347
global bitmsglib, bmpow
348348

349349
openclpow.initCL()

src/tests/test_proofofwork.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def test_calculate(self):
7676
# pylint: disable=import-outside-toplevel
7777
from class_singleWorker import singleWorker
7878

79+
# pylint: disable=no-member
7980
with self.assertLogs('default') as cm:
8081
self.assertTrue(protocol.isProofOfWorkSufficient(
8182
singleWorker._doPOWDefaults(payload, TTL, log_prefix='+')))

0 commit comments

Comments
 (0)