Skip to content

Commit

Permalink
Fix hypothesis warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
benjeffery committed Apr 5, 2024
1 parent db016f2 commit 8a2ead6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion python/tests/test_file_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@
import kastore.store as store

# Set the deadline to None to avoid weird behaviour on CI.
hypothesis.settings.register_profile("kastore_defaults", deadline=None)
hypothesis.settings.register_profile(
"kastore_defaults",
deadline=None,
# Supress warnings resultsing from inheritance
suppress_health_check=(hypothesis.HealthCheck.differing_executors,)
)
hypothesis.settings.load_profile("kastore_defaults")


# Exclude any 'other' unicode categories:
# http://www.unicode.org/reports/tr44/#General_Category_Values
key_alphabet = hst.characters(blacklist_categories=("C",))
Expand Down
8 changes: 7 additions & 1 deletion python/tests/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@

import kastore as kas


# Set the deadline to None to avoid weird behaviour on CI.
hypothesis.settings.register_profile("kastore_defaults", deadline=None)
hypothesis.settings.register_profile(
"kastore_defaults",
deadline=None,
# Supress warnings resultsing from inheritance
suppress_health_check=(hypothesis.HealthCheck.differing_executors,)
)
hypothesis.settings.load_profile("kastore_defaults")

# Exclude any 'other' unicode categories:
Expand Down

0 comments on commit 8a2ead6

Please sign in to comment.