File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -388,7 +388,7 @@ jobs:
388388 id : cache-hypothesis-database
389389 uses : actions/cache@v4
390390 with :
391- path : ./ hypothesis
391+ path : ${{ env.CPYTHON_BUILDDIR }}/. hypothesis/
392392 key : hypothesis-database-${{ github.head_ref || github.run_id }}
393393 restore-keys : |
394394 - hypothesis-database-
@@ -416,7 +416,7 @@ jobs:
416416 if : always()
417417 with :
418418 name : hypothesis-example-db
419- path : .hypothesis/examples/
419+ path : ${{ env.CPYTHON_BUILDDIR }}/ .hypothesis/examples/
420420
421421
422422 build_asan :
Original file line number Diff line number Diff line change 55except ImportError :
66 from . import _hypothesis_stubs as hypothesis
77else :
8+ # Regrtest changes to use a tempdir as the working directory, so we have
9+ # to tell Hypothesis to use the original in order to persist the database.
10+ from .os_helper import SAVEDCWD
11+ from hypothesis .configuration import set_hypothesis_home_dir
12+
13+ set_hypothesis_home_dir (os .path .join (SAVEDCWD , ".hypothesis" ))
14+
815 # When using the real Hypothesis, we'll configure it to ignore occasional
916 # slow tests (avoiding flakiness from random VM slowness in CI).
1017 hypothesis .settings .register_profile (
You can’t perform that action at this time.
0 commit comments