+2
−2
Loading
Nothing too particularly interesting...
Traceback (most recent call last):
File "/home/atagar/Desktop/tor/bridgedb/bridgedb/test/test_captcha.py", line 63, in test_get
if os.environ.has_key(envkey):
builtins.AttributeError: '_Environ' object has no attribute 'has_key'
Traceback (most recent call last):
File "/home/atagar/Desktop/tor/bridgedb/bridgedb/test/test_captcha.py", line 191, in test_get
image, challenge = c.get()
File "/home/atagar/Desktop/tor/bridgedb/bridgedb/captcha.py", line 391, in get
self.image = imageFile.read()
File "/usr/lib/python3.5/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
builtins.UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
Traceback (most recent call last):
File "/home/atagar/Desktop/tor/bridgedb/bridgedb/test/test_captcha.py", line 163, in test_createChallenge_hmacValid
challenge = c.createChallenge('ShouldHaveAValidHMAC')
File "/home/atagar/Desktop/tor/bridgedb/bridgedb/captcha.py", line 369, in createChallenge
encBlob = self.publicKey.encrypt(blob)
File "/usr/local/lib/python3.5/dist-packages/Crypto/Cipher/PKCS1_OAEP.py", line 121, in encrypt
db = lHash + ps + b'\x01' + _copy_bytes(None, None, message)
builtins.TypeError: can't concat bytes to str
Test results changed as follows...
before: FAILED (skips=114, failures=21, errors=52, successes=797)
after: FAILED (skips=115, failures=29, errors=34, successes=806)