Skip to content

Commit 6ead5bd

Browse files
authored
Disable differing_test_runners health check (#108886)
1 parent 40e52c9 commit 6ead5bd

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ jobs:
431431
VENV_PYTHON=$VENV_LOC/bin/python
432432
echo "HYPOVENV=${VENV_LOC}" >> $GITHUB_ENV
433433
echo "VENV_PYTHON=${VENV_PYTHON}" >> $GITHUB_ENV
434-
./python -m venv $VENV_LOC && $VENV_PYTHON -m pip install -U hypothesis
434+
./python -m venv $VENV_LOC && $VENV_PYTHON -m pip install -r ${GITHUB_WORKSPACE}/Tools/requirements-hypothesis.txt
435435
- name: 'Restore Hypothesis database'
436436
id: cache-hypothesis-database
437437
uses: actions/cache@v3

Lib/test/support/hypothesis_helper.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
hypothesis.settings.register_profile(
1111
"slow-is-ok",
1212
deadline=None,
13-
suppress_health_check=[hypothesis.HealthCheck.too_slow],
13+
suppress_health_check=[
14+
hypothesis.HealthCheck.too_slow,
15+
hypothesis.HealthCheck.differing_executors,
16+
],
1417
)
1518
hypothesis.settings.load_profile("slow-is-ok")
1619

Tools/requirements-hypothesis.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Requirements file for hypothesis that
2+
# we use to run our property-based tests in CI.
3+
4+
hypothesis==6.84.0

0 commit comments

Comments
 (0)