Install hypothesis in selftests on Python 3.12+

This commit is contained in:
Miro Hrončok 2023-09-22 16:25:24 +02:00
commit d3681dff6f

View file

@ -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