New submission from ivank <[email protected]>:
Python 2.7r72791, PyCrypto 2.0.1:
{{{
===============================================================================
[ERROR]: twisted.test.test_randbytes.ConditionalSecureRandomTestCase.test_cryptoRandom
Traceback (most recent call last):
File "/home/bear/Twisted/twisted/test/test_randbytes.py", line 107, in test_cryptoRandom
self._check(self.factory._cryptoRandom)
File "/home/bear/Twisted/twisted/test/test_randbytes.py", line 34, in _check
s = source(nbytes)
File "/home/bear/Twisted/twisted/python/randbytes.py", line 92, in _cryptoRandom
self.randomPool = self.randpool.RandomPool()
File "/usr/local/lib/python2.7/site-packages/Crypto/Util/randpool.py", line 86, in __init__
self._measureTickSize() # Estimate timer resolution
File "/usr/local/lib/python2.7/site-packages/Crypto/Util/randpool.py", line 271, in _measureTickSize
self.stir(h.digest())
File "/usr/local/lib/python2.7/site-packages/Crypto/Util/randpool.py", line 158, in stir
h = self._hash.new(self._randpool)
exceptions.TypeError: object supporting the buffer API required
===============================================================================
[ERROR]: twisted.test.test_randbytes.ConditionalSecureRandomTestCase.test_withoutOsAndFileUrandom
Traceback (most recent call last):
File "/home/bear/Twisted/twisted/test/test_randbytes.py", line 131, in test_withoutOsAndFileUrandom
self._check(self.factory.secureRandom)
File "/home/bear/Twisted/twisted/test/test_randbytes.py", line 34, in _check
s = source(nbytes)
File "/home/bear/Twisted/twisted/python/randbytes.py", line 113, in secureRandom
return getattr(self, src)(nbytes)
File "/home/bear/Twisted/twisted/python/randbytes.py", line 92, in _cryptoRandom
self.randomPool = self.randpool.RandomPool()
File "/usr/local/lib/python2.7/site-packages/Crypto/Util/randpool.py", line 86, in __init__
self._measureTickSize() # Estimate timer resolution
File "/usr/local/lib/python2.7/site-packages/Crypto/Util/randpool.py", line 271, in _measureTickSize
self.stir(h.digest())
File "/usr/local/lib/python2.7/site-packages/Crypto/Util/randpool.py", line 158, in stir
h = self._hash.new(self._randpool)
exceptions.TypeError: object supporting the buffer API required
}}}
----------
Type : defect
Component: core
Keywords : pycrypto
Priority : normal
Nosy :
----------
http://twistedmatrix.com/trac/ticket/3848
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.