Staging
v0.5.1
https://github.com/python/cpython
Revision 8ab624b17ba656e9af5a79be6af0cf2911a111ba authored by Gregory P. Smith on 29 May 2019, 02:08:28 UTC, committed by Ned Deily on 29 May 2019, 02:08:27 UTC
* [3.6] bpo-35925: Skip SSL tests that fail due to weak external certs. (GH-13124)

Modern Linux distros such as Debian Buster have default OpenSSL system
configurations that reject connections to servers with weak certificates
by default.  This causes our test suite run with external networking
resources enabled to skip these tests when they encounter such a failure.

Fixing the network servers is a separate issue..
(cherry picked from commit 2cc0223f43a1ffd59c887a73e2b0ce5202f3be90)

Co-authored-by: Gregory P. Smith <greg@krypto.org>

* Also skip ssl tests that fail when the system rejects TLSv1.

* Remove the test_httplib change; server was updated.

self-signed.pythontest.net was updated so the test_httplib change is
no longer necessary.
1 parent 3dbc43f
Raw File
Tip revision: 8ab624b17ba656e9af5a79be6af0cf2911a111ba authored by Gregory P. Smith on 29 May 2019, 02:08:28 UTC
[3.6] bpo-35925: Skip SSL tests that fail due to weak external certs or old TLS (GH-13124) (GH-13252)
Tip revision: 8ab624b
ar_beos
#!/bin/sh
#
#  Truly fake ar, using a directory to store object files.
#
#     Donn Cave, donn@oz.net

usage='Usage: ar-fake cr libpython.dir obj.o ...
       ar-fake d libpython.dir obj.o ...
       ar-fake so libpython.dir libpython.so'

case $# in
0|1|2)
        echo "$usage" >&2
        exit 1
        ;;
esac

command=$1
library=$2
shift 2

case $command in
cr)
        if test -d $library
        then :
        else
                mkdir $library
        fi
        if cp -p $* $library
        then
                #  To force directory modify date, create or delete a file.
                if test -e $library/.tch
                then rm $library/.tch
                else echo tch > $library/.tch
                fi
                exit 0
        fi
        ;;
d)
        if test -d $library
        then
                cd $library
                rm -f $*
        fi
        ;;
so)
        case $BE_HOST_CPU in
        ppc)
                #  In case your libpython.a refers to any exotic libraries,
                #  mwld needs to know that here.  The following hack makes
                #  a couple of assumptions about Modules/Makefile.  If it
                #  doesn't work, you may as well add the necessary libraries
                #  here explicitly instead.
                extralibs=$(
                        (cd Modules; make -f Makefile -n link) |
                        sed -n 's/.*\.so \(.*\) -o python.*/\1/p'
                )
                mwld -xms -export pragma -nodup -o $1 $library/* $extralibs
                ;;
        x86)
                ld -shared -soname $(basename $1) -o $1 $library/*
                ;;
        esac
        status=$?
        cd $(dirname $1)
        ln -sf $PWD lib
        exit $status
        ;;
*)
        echo "$usage" >&2
        exit 1
        ;;
esac
back to top