Skip to content

Commit 083f0eb

Browse files
committed
set homedir
1 parent d9b2675 commit 083f0eb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Lib/test/support/hypothesis_helper.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
except ImportError:
66
from . import _hypothesis_stubs as hypothesis
77
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+
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(
@@ -17,8 +24,6 @@
1724
)
1825
hypothesis.settings.load_profile("slow-is-ok")
1926

20-
print(f"XXXX {hypothesis.settings.default=}")
21-
2227
# For local development, we'll write to the default on-local-disk database
2328
# of failing examples, and also use a pull-through cache to automatically
2429
# replay any failing examples discovered in CI. For details on how this

0 commit comments

Comments
 (0)