| Summary: | dev-python/pyopenssl-16.2.0 fails tests | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Paolo Pedroni <paolo.pedroni> |
| Component: | Current packages | Assignee: | Python Gentoo Team <python> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | jstein |
| Priority: | Normal | Keywords: | TESTFAILURE |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | pyopenssl-16.2.0:20170612-145853.log.gz | ||
|
Description
Paolo Pedroni
2017-06-12 15:08:33 UTC
I can confirm. Have exactly the same issue.
The same tests keep failing in dev-python/pyopenssl-17.0.0
FTR:
# emerge -pvqO openssl cryptography pyopenssl
[ebuild R ] dev-libs/openssl-1.0.2k USE="asm sslv3 {test} tls-heartbeat zlib -bindist -gmp -kerberos -rfc3779 -sctp -sslv2 -static-libs -vanilla" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="(sse2)"
[ebuild R ] dev-python/cryptography-1.7.1 USE="{test} (-libressl)" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) (-python3_5) (-python3_6)"
[ebuild R ] dev-python/pyopenssl-16.2.0 USE="-doc -examples {-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) (-python3_5) (-python3_6)"
The tests *are* fixed in dev-python/pyopenssl-17.2.0.
Spot-checking suggests, those are actually passing now, and were not just deleted.
dev-python/pyopenssl-17.2.0 pulls in dev-python/cryptography-2.0.2, but that alone is not enough to fix dev-python/pyopenssl-{16.2.0,17.0.0}
For me one test still fails:
================================================================== FAILURES ==================================================================
_________________________________________________ TestX509StoreContext.test_verify_with_time _________________________________________________
self = <tests.test_crypto.TestX509StoreContext object at 0x000055b0e9168598>
def test_verify_with_time(self):
"""
`verify_certificate` raises error when the verification time is
set at notAfter.
"""
store = X509Store()
store.add_cert(self.root_cert)
store.add_cert(self.intermediate_cert)
expire_time = self.intermediate_server_cert.get_notAfter()
expire_datetime = datetime.strptime(
expire_time.decode('utf-8'), '%Y%m%d%H%M%SZ'
)
store.set_time(expire_datetime)
store_ctx = X509StoreContext(store, self.intermediate_server_cert)
with pytest.raises(X509StoreContextError) as exc:
> store_ctx.verify_certificate()
E Failed: DID NOT RAISE <class 'OpenSSL.crypto.X509StoreContextError'>
tests/test_crypto.py:3639: Failed
=================================================== 1 failed, 504 passed in 10.27 seconds ====================================================
* ERROR: dev-python/pyopenssl-17.2.0::gentoo failed (test phase):
* Testing failed with pypy
Closing old bugs. Please open a new one if it still happens with 20.0.0. |