From 97db1f97bbd65a663479484b2d282a578e4c55da Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Nov 29 2018 15:50:35 +0000 Subject: [PATCH 1/2] Run Python 3.7 selftest tests in selftest tests of these tests --- diff --git a/selftest/findleaks.sh b/selftest/findleaks.sh index da94593..44bba9f 100755 --- a/selftest/findleaks.sh +++ b/selftest/findleaks.sh @@ -8,4 +8,10 @@ PYTHON=${PYTHON:-python${VERSION}dm} # test_socket swaps and kills the machine https://bugs.python.org/issue34587 X=${X:-"-x test_socket"} +# Fedora sets TLSv1 as explicit minimum version. +# Python's test suite assumes that the minimum protocol version is set to +# a magic marker. We workaround the test problem by setting: +export OPENSSL_CONF=/non-existing-file +# https://bugzilla.redhat.com/show_bug.cgi?id=1618753 + $PYTHON -m test --findleaks $X diff --git a/selftest/parallel.sh b/selftest/parallel.sh index 5997a30..d050cf7 100755 --- a/selftest/parallel.sh +++ b/selftest/parallel.sh @@ -11,4 +11,10 @@ X=${X:-"-x test_socket"} # parallel jobs, 0 lets Python decide what's best JOBS=${JOBS:-0} +# Fedora sets TLSv1 as explicit minimum version. +# Python's test suite assumes that the minimum protocol version is set to +# a magic marker. We workaround the test problem by setting: +export OPENSSL_CONF=/non-existing-file +# https://bugzilla.redhat.com/show_bug.cgi?id=1618753 + $PYTHON -m test -j$JOBS $X diff --git a/tests.yml b/tests.yml index e51e55f..739e52c 100644 --- a/tests.yml +++ b/tests.yml @@ -20,6 +20,9 @@ - smokepypy3: dir: smoke run: VERSION=3.5 METHOD=venv PYTHON=pypy3 ./venv.sh + - selftest37: + dir: selftest + run: VERSION=3.7 X="-x test_socket -x test_asyncgen -x test_asyncio -x test_compile -x test_concurrent_futures -x test_itertools -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_shutil -x test_time -x test_multiprocessing_spawn -x test_threading -x test_wsgiref" ./parallel.sh required_packages: - gcc - /usr/bin/virtualenv @@ -33,3 +36,5 @@ - pypy-devel - pypy3-devel - python3-tox + - python3-tkinter + - python3-test From ead01d15f0a1d94c6185bdb35e5da1e454e899de Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Nov 30 2018 09:12:31 +0000 Subject: [PATCH 2/2] Find leaks! --- diff --git a/tests.yml b/tests.yml index 739e52c..3d37712 100644 --- a/tests.yml +++ b/tests.yml @@ -23,6 +23,9 @@ - selftest37: dir: selftest run: VERSION=3.7 X="-x test_socket -x test_asyncgen -x test_asyncio -x test_compile -x test_concurrent_futures -x test_itertools -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_shutil -x test_time -x test_multiprocessing_spawn -x test_threading -x test_wsgiref" ./parallel.sh + - findleaks37: + dir: selftest + run: VERSION=3.7 X="-x test_socket -x test_asyncgen -x test_asyncio -x test_compile -x test_concurrent_futures -x test_itertools -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_shutil -x test_time -x test_multiprocessing_spawn -x test_threading -x test_wsgiref" ./findleaks.sh required_packages: - gcc - /usr/bin/virtualenv @@ -38,3 +41,4 @@ - python3-tox - python3-tkinter - python3-test + - python3-debug