Skip to content

Commit bce7791

Browse files
[3.12] Disable differing_test_runners health check (GH-108886) (#108887)
Disable `differing_test_runners` health check (GH-108886) (cherry picked from commit 6ead5bd) Co-authored-by: Nikita Sobolev <[email protected]>
1 parent d5c2d45 commit bce7791

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
@@ -474,7 +474,7 @@ jobs:
474474
VENV_PYTHON=$VENV_LOC/bin/python
475475
echo "HYPOVENV=${VENV_LOC}" >> $GITHUB_ENV
476476
echo "VENV_PYTHON=${VENV_PYTHON}" >> $GITHUB_ENV
477-
./python -m venv $VENV_LOC && $VENV_PYTHON -m pip install -U hypothesis
477+
./python -m venv $VENV_LOC && $VENV_PYTHON -m pip install -r ${GITHUB_WORKSPACE}/Tools/requirements-hypothesis.txt
478478
- name: 'Restore Hypothesis database'
479479
id: cache-hypothesis-database
480480
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)