Robert Kuska added the comment: 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 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23857> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com