+4
−3
Loading
This corrects the following...
Traceback (most recent call last):
File "/home/atagar/Desktop/tor/bridgedb/bridgedb/test/test_crypto.py", line 226, in test_crypto_initializeGnuPG_nonexistent_default_key
gpg, signfunc = crypto.initializeGnuPG(self.config)
File "/home/atagar/Desktop/tor/bridgedb/bridgedb/crypto.py", line 318, in initializeGnuPG
for sub in list(primaryPK)[0]['subkeys']:
builtins.IndexError: list index out of range
Traceback (most recent call last):
File "/home/atagar/Desktop/tor/bridgedb/bridgedb/test/test_crypto.py", line 218, in test_crypto_initializeGnuPG_signingFunc
self.assertTrue(sig.startswith('-----BEGIN PGP SIGNED MESSAGE-----'))
builtins.TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Test results changed as follows...
before: FAILED (skips=114, failures=21, errors=55, successes=794)
after: FAILED (skips=114, failures=21, errors=52, successes=797)