Message261995
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 |
|
Date |
User |
Action |
Args |
2016-03-18 20:46:20 | rkuska | set | recipients:
+ rkuska, lemburg, barry, doko, ncoghlan, janssen, pitrou, vstinner, christian.heimes, alex, r.david.murray, bkabrda, dstufft |
2016-03-18 20:46:20 | rkuska | set | messageid: <1458333980.35.0.31143163373.issue23857@psf.upfronthosting.co.za> |
2016-03-18 20:46:20 | rkuska | link | issue23857 messages |
2016-03-18 20:46:20 | rkuska | create | |
|