From 0cec19bc6c3595365c87d23023bdfb7767f46b35 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sat, 17 Sep 2022 12:04:29 +0200 Subject: Fix linting failures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- gemato/recursiveloader.py | 1 - tests/test_openpgp.py | 2 +- tests/test_verify.py | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gemato/recursiveloader.py b/gemato/recursiveloader.py index e3d9646..11b9642 100644 --- a/gemato/recursiveloader.py +++ b/gemato/recursiveloader.py @@ -319,7 +319,6 @@ class ManifestRecursiveLoader: if insecure or not hashes: raise ManifestInsecureHashes(insecure) - def load_manifest(self, relpath, verify_entry=None, diff --git a/tests/test_openpgp.py b/tests/test_openpgp.py index 7b02e0e..59deef4 100644 --- a/tests/test_openpgp.py +++ b/tests/test_openpgp.py @@ -560,7 +560,7 @@ def base_tree(tmp_path): os.mkdir(tmp_path / 'eclass') with open(tmp_path / 'eclass' / 'Manifest', 'w'): pass - with open(tmp_path / 'myebuild-0.ebuild', 'wb') as f: + with open(tmp_path / 'myebuild-0.ebuild', 'wb'): pass with open(tmp_path / 'metadata.xml', 'wb'): pass diff --git a/tests/test_verify.py b/tests/test_verify.py index f54cd74..8890e1a 100644 --- a/tests/test_verify.py +++ b/tests/test_verify.py @@ -104,6 +104,7 @@ def get_checksums(path): '__size__': hashes['__size__'], } + EMPTY_CHECKSUMS = { "MD5": "d41d8cd98f00b204e9800998ecf8427e", "SHA1": "da39a3ee5e6b4b0d3255bfef95601890afd80709", -- cgit v1.2.3