File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed 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 (SAVEDCWD )
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 (
17
24
)
18
25
hypothesis .settings .load_profile ("slow-is-ok" )
19
26
20
- print (f"XXXX { hypothesis .settings .default = } " )
21
-
22
27
# For local development, we'll write to the default on-local-disk database
23
28
# of failing examples, and also use a pull-through cache to automatically
24
29
# replay any failing examples discovered in CI. For details on how this
You can’t perform that action at this time.
0 commit comments