File tree 2 files changed +9
-2
lines changed 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -388,7 +388,7 @@ jobs:
388
388
id : cache-hypothesis-database
389
389
uses : actions/cache@v4
390
390
with :
391
- path : ./ hypothesis
391
+ path : ${{ env.CPYTHON_BUILDDIR }}/. hypothesis/
392
392
key : hypothesis-database-${{ github.head_ref || github.run_id }}
393
393
restore-keys : |
394
394
- hypothesis-database-
@@ -416,7 +416,7 @@ jobs:
416
416
if : always()
417
417
with :
418
418
name : hypothesis-example-db
419
- path : .hypothesis/examples/
419
+ path : ${{ env.CPYTHON_BUILDDIR }}/ .hypothesis/examples/
420
420
421
421
422
422
build_asan :
Original file line number Diff line number Diff line change 5
5
except ImportError :
6
6
from . import _hypothesis_stubs as hypothesis
7
7
else :
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
+
8
15
# When using the real Hypothesis, we'll configure it to ignore occasional
9
16
# slow tests (avoiding flakiness from random VM slowness in CI).
10
17
hypothesis .settings .register_profile (
You can’t perform that action at this time.
0 commit comments