From d3681dff6f6a66db8511345cc70b3f7be1fcf6a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 22 Sep 2023 16:25:24 +0200 Subject: [PATCH] Install hypothesis in selftests on Python 3.12+ --- selftest/parallel.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/selftest/parallel.sh b/selftest/parallel.sh index b59ea7c..0c18e23 100755 --- a/selftest/parallel.sh +++ b/selftest/parallel.sh @@ -29,5 +29,9 @@ export OPENSSL_CONF=/non-existing-file # We only do this if stdlib distutils actually exists $PYTHON -c 'import distutils' 2>/dev/null && export SETUPTOOLS_USE_DISTUTILS=stdlib || true +# Python 3.12+ uses hypotheis in zoneinfo tests when available +$PYTHON -m ensurepip --user +$PYTHON -m pip install --user "hypothesis;python_version>='3.12'" + $PYTHON -m test.pythoninfo $PYTHON -m test -wW -j$JOBS $X