diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-09-04 18:31:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-04 18:31:58 (GMT) |
commit | 6ead5bd6ae20b902e6c11a3c0acede22632dc0d5 (patch) | |
tree | 96dcd17257d4908f71e526d917e11ce1a54d1d33 | |
parent | 40e52c94a27e4cd94b48e8a705914823cbb6afed (diff) | |
download | cpython-6ead5bd6ae20b902e6c11a3c0acede22632dc0d5.zip cpython-6ead5bd6ae20b902e6c11a3c0acede22632dc0d5.tar.gz cpython-6ead5bd6ae20b902e6c11a3c0acede22632dc0d5.tar.bz2 |
Disable `differing_test_runners` health check (#108886)
-rw-r--r-- | .github/workflows/build.yml | 2 | ||||
-rw-r--r-- | Lib/test/support/hypothesis_helper.py | 5 | ||||
-rw-r--r-- | Tools/requirements-hypothesis.txt | 4 |
3 files changed, 9 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d37eb44..bb568f8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -431,7 +431,7 @@ jobs: VENV_PYTHON=$VENV_LOC/bin/python echo "HYPOVENV=${VENV_LOC}" >> $GITHUB_ENV echo "VENV_PYTHON=${VENV_PYTHON}" >> $GITHUB_ENV - ./python -m venv $VENV_LOC && $VENV_PYTHON -m pip install -U hypothesis + ./python -m venv $VENV_LOC && $VENV_PYTHON -m pip install -r ${GITHUB_WORKSPACE}/Tools/requirements-hypothesis.txt - name: 'Restore Hypothesis database' id: cache-hypothesis-database uses: actions/cache@v3 diff --git a/Lib/test/support/hypothesis_helper.py b/Lib/test/support/hypothesis_helper.py index da16eb5..db93eea 100644 --- a/Lib/test/support/hypothesis_helper.py +++ b/Lib/test/support/hypothesis_helper.py @@ -10,7 +10,10 @@ else: hypothesis.settings.register_profile( "slow-is-ok", deadline=None, - suppress_health_check=[hypothesis.HealthCheck.too_slow], + suppress_health_check=[ + hypothesis.HealthCheck.too_slow, + hypothesis.HealthCheck.differing_executors, + ], ) hypothesis.settings.load_profile("slow-is-ok") diff --git a/Tools/requirements-hypothesis.txt b/Tools/requirements-hypothesis.txt new file mode 100644 index 0000000..9db2b74 --- /dev/null +++ b/Tools/requirements-hypothesis.txt @@ -0,0 +1,4 @@ +# Requirements file for hypothesis that +# we use to run our property-based tests in CI. + +hypothesis==6.84.0 |