diff --git a/src/proofofwork.py b/src/proofofwork.py index 67a57b44..539db710 100644 --- a/src/proofofwork.py +++ b/src/proofofwork.py @@ -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() diff --git a/src/tests/test_proofofwork.py b/src/tests/test_proofofwork.py index 0d643652..16ff649d 100644 --- a/src/tests/test_proofofwork.py +++ b/src/tests/test_proofofwork.py @@ -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='+')))