This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rkuska
Recipients alex, barry, bkabrda, christian.heimes, doko, dstufft, janssen, lemburg, ncoghlan, pitrou, r.david.murray, rkuska, vstinner
Date 2016-03-18.20:46:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1458333980.35.0.31143163373.issue23857@psf.upfronthosting.co.za>
In-reply-to
Content
If test fail it will print out non-telling message which make debugging a little bit hard:

 FAIL: test__https_verify_envvar (test.test_ssl.ContextTests)                                        
 ----------------------------------------------------------------------                              
 Traceback (most recent call last):                                                                  
   File "/builddir/build/BUILD/Python-2.7.5/Lib/test/test_ssl.py", line 1143, in test__https_verify_envvar
     assert_python_ok("-c", https_is_verified, **extra_env)                                          
   File "/builddir/build/BUILD/Python-2.7.5/Lib/test/script_helper.py", line 55, in assert_python_ok
     return _assert_python(True, *args, **env_vars)                                                  
   File "/builddir/build/BUILD/Python-2.7.5/Lib/test/script_helper.py", line 47, in _assert_python  
     "stderr follows:\n%s" % (rc, err.decode('ascii', 'ignore')))                                    
 AssertionError: Process return code is 1, stderr follows:

Would be possible to change following code which is being executed:

+        https_is_verified = """import ssl, sys;\
+            sys.exit(ssl._create_default_https_context is not
+                     ssl.create_default_context)"""

into something like

https_is_verified = """import ssl, sys;\
value = ssl._create_default_https_context is not ssl.create_default_context;\
sys.exit('ssl._create_default_https_context should be set to verified' if value else value)"""

So traceback will look like this:
...
    "stderr follows:\n%s" % (rc, err.decode('ascii', 'ignore')))
AssertionError: Process return code is 1, stderr follows:
ssl._create_default_https_context should be set to verified
History
Date User Action Args
2016-03-18 20:46:20rkuskasetrecipients: + rkuska, lemburg, barry, doko, ncoghlan, janssen, pitrou, vstinner, christian.heimes, alex, r.david.murray, bkabrda, dstufft
2016-03-18 20:46:20rkuskasetmessageid: <1458333980.35.0.31143163373.issue23857@psf.upfronthosting.co.za>
2016-03-18 20:46:20rkuskalinkissue23857 messages
2016-03-18 20:46:20rkuskacreate