]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Disable `differing_test_runners` health check (GH-108886) (#108887)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 4 Sep 2023 19:11:16 +0000 (12:11 -0700)
committerGitHub <noreply@github.com>
Mon, 4 Sep 2023 19:11:16 +0000 (21:11 +0200)
Disable `differing_test_runners` health check (GH-108886)
(cherry picked from commit 6ead5bd6ae20b902e6c11a3c0acede22632dc0d5)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
.github/workflows/build.yml
Lib/test/support/hypothesis_helper.py
Tools/requirements-hypothesis.txt [new file with mode: 0644]

index ea6d43947449f171acd7f49bc8f79cd6baf59fd2..994694f57a6a3292ea8128653b53d8b4b935d954 100644 (file)
@@ -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
index da16eb50c259583670a40b5fbb80a5a5076b4d2a..db93eea5e912e03de0d2ec63dde3b38800c68c6a 100644 (file)
@@ -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 (file)
index 0000000..9db2b74
--- /dev/null
@@ -0,0 +1,4 @@
+# Requirements file for hypothesis that
+# we use to run our property-based tests in CI.
+
+hypothesis==6.84.0