Merge pull request #9635 from borgbackup/finding-autofix-03f334da

Fix for Missing call to superclass `__init__` during object initialization
This commit is contained in:
TW 2026-05-22 12:36:10 +02:00 committed by GitHub
commit 1dd5840225
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -282,7 +282,10 @@ def test_repo_key_detect_does_not_raise_integrity_error(getpass, monkeypatch):
class TestDeriveKey(BaseTestCase):
# Create a simple KeyBase subclass with a non-empty crypt_key
class CustomKey(KeyBase):
TYPE = 0x42
def __init__(self, crypt_key, id_key):
super().__init__(None)
self.crypt_key = crypt_key
self.id_key = id_key