diff --git a/hypothesis-python/src/hypothesis/core.py b/hypothesis-python/src/hypothesis/core.py index 83992a0b384..188fb6d1a4e 100644 --- a/hypothesis-python/src/hypothesis/core.py +++ b/hypothesis-python/src/hypothesis/core.py @@ -1675,7 +1675,6 @@ def wrapped_test(*arguments, **kwargs): # The exception caught here should either be an actual test # failure (or BaseExceptionGroup), or some kind of fatal error # that caused the engine to stop. - generated_seed = wrapped_test._hypothesis_internal_use_generated_seed with local_settings(settings): if not (state.failed_normally or generated_seed is None): diff --git a/hypothesis-python/tests/pytest/test_capture.py b/hypothesis-python/tests/pytest/test_capture.py index f2765dd3a30..d5fb88ed9e4 100644 --- a/hypothesis-python/tests/pytest/test_capture.py +++ b/hypothesis-python/tests/pytest/test_capture.py @@ -93,7 +93,8 @@ def test_healthcheck_traceback_is_hidden(x): """ -def test_healthcheck_traceback_is_hidden(testdir): +def test_healthcheck_traceback_is_hidden(testdir, monkeypatch): + monkeypatch.delenv("CI", raising=False) script = testdir.makepyfile(TRACEBACKHIDE_HEALTHCHECK) result = testdir.runpytest(script, "--verbose") def_token = "__ test_healthcheck_traceback_is_hidden __" diff --git a/hypothesis-python/tests/pytest/test_seeding.py b/hypothesis-python/tests/pytest/test_seeding.py index 04a61eec356..954628596e7 100644 --- a/hypothesis-python/tests/pytest/test_seeding.py +++ b/hypothesis-python/tests/pytest/test_seeding.py @@ -82,7 +82,10 @@ def test_failure(i): """ -def test_repeats_healthcheck_when_following_seed_instruction(testdir, tmp_path): +def test_repeats_healthcheck_when_following_seed_instruction( + testdir, tmp_path, monkeypatch +): + monkeypatch.delenv("CI", raising=False) health_check_test = HEALTH_CHECK_FAILURE.replace( "", repr(str(tmp_path / "seen")) )