Skip to content

Commit

Permalink
Disable differing_test_runners health check (pythonGH-108886)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6ead5bd)

Co-authored-by: Nikita Sobolev <[email protected]>
  • Loading branch information
sobolevn authored and miss-islington committed Sep 4, 2023
1 parent d5c2d45 commit 28d8f80
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,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
Expand Down
5 changes: 4 additions & 1 deletion Lib/test/support/hypothesis_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
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")

Expand Down
4 changes: 4 additions & 0 deletions Tools/requirements-hypothesis.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Requirements file for hypothesis that
# we use to run our property-based tests in CI.

hypothesis==6.84.0

0 comments on commit 28d8f80

Please sign in to comment.