From 00d9afb96b524871590bdff2cf9704d9824422ca Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Sun, 19 Jan 2025 15:16:49 +0200 Subject: [PATCH] Suppress no-member pylint warning in test_proofofwork, fix typo from a84168f2 --- src/proofofwork.py | 2 +- src/tests/test_proofofwork.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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='+')))