Skip to content

Commit

Permalink
fix pyodide healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Feb 19, 2024
1 parent 3adb0ef commit 32ef5a2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hypothesis-python/tests/cover/test_stateful.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,11 @@ def test_settings_attribute_is_validated():

def test_saves_failing_example_in_database():
db = ExampleDatabase(":memory:")
ss = Settings(
database=db, max_examples=100, suppress_health_check=list(HealthCheck)
)
with raises(AssertionError):
run_state_machine_as_test(
DepthMachine, settings=Settings(database=db, max_examples=100)
)
run_state_machine_as_test(DepthMachine, settings=ss)
assert any(list(db.data.values()))


Expand Down

0 comments on commit 32ef5a2

Please sign in to comment.