OpenSSL.test.test_ssl.ContextTests.test_load_verify_* tests error on NetBSD-5.0

Bug #525993 reported by olix0r
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyOpenSSL
Fix Released
Undecided
Unassigned

Bug Description

> $ trial OpenSSL.test.test_ssl.ContextTests
> OpenSSL.test.test_ssl
> ContextTests
> test_add_extra_chain_cert ... [OK]
> test_add_extra_chain_cert_invalid_cert ... [OK]
> test_load_verify_directory ... [ERROR]
> test_load_verify_file ... [ERROR]
> test_load_verify_invalid_file ... [OK]
> test_method ... [OK]
> test_set_default_verify_paths ... [OK]
> test_set_default_verify_paths_signature ... [OK]
> test_set_info_callback ... [OK]
> test_set_passwd_cb ... [OK]
> test_type ... [OK]
> test_use_privatekey ... [OK]
>
> ===============================================================================
> [ERROR]: OpenSSL.test.test_ssl.ContextTests.test_load_verify_directory
>
> Traceback (most recent call last):
> File "/usr/pkg/lib/python2.6/unittest.py", line 279, in run
> testMethod()
> File "/usr/pkg/lib/python2.6/site-packages/OpenSSL/test/test_ssl.py", line 235, in test_load_verify_directory
> self._load_verify_locations_test(None, capath)
> File "/usr/pkg/lib/python2.6/site-packages/OpenSSL/test/test_ssl.py", line 195, in _load_verify_locations_test
> self.assertEqual(cert.get_subject().CN, 'Testing Root CA')
> exceptions.AttributeError: 'NoneType' object has no attribute 'get_subject'
> ===============================================================================
> [ERROR]: OpenSSL.test.test_ssl.ContextTests.test_load_verify_file
>
> Traceback (most recent call last):
> File "/usr/pkg/lib/python2.6/unittest.py", line 279, in run
> testMethod()
> File "/usr/pkg/lib/python2.6/site-packages/OpenSSL/test/test_ssl.py", line 208, in test_load_verify_file
> self._load_verify_locations_test(cafile)
> File "/usr/pkg/lib/python2.6/site-packages/OpenSSL/test/test_ssl.py", line 195, in _load_verify_locations_test
> self.assertEqual(cert.get_subject().CN, 'Testing Root CA')
> exceptions.AttributeError: 'NoneType' object has no attribute 'get_subject'
> -------------------------------------------------------------------------------
> Ran 12 tests in 0.419s
>
> FAILED (errors=2, successes=10)

Using PDB to step through these cases, it appears that clientSSL.do_handshake()
always fails with WantReadError.

Revision history for this message
Jean-Paul Calderone (exarkun) wrote :

I believe this was fixed by the shore-up-tests branch.

Changed in pyopenssl:
milestone: none → 0.11
status: New → Fix Committed
Changed in pyopenssl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.