Skip to content

Commit

Permalink
Fix for python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Sep 12, 2023
1 parent 713a778 commit 7b2b36a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
# SPDX-License-Identifier: BSD-3-Clause

import hypothesis
from packaging import version
import torch

SEED = 123456
DIFFERING_EXECUTOR_ENUM = 10 # Disabled since it fails with normal test setup
HYPOTHESIS_HEALTHCHECK_VERSION = '6.83.2' # The new healthcheck was introduced in this version

torch.random.manual_seed(SEED)
hypothesis.settings(suppress_health_check=[hypothesis.HealthCheck(DIFFERING_EXECUTOR_ENUM)])
if version.parse(hypothesis.__version__) >= version.parse(HYPOTHESIS_HEALTHCHECK_VERSION):
hypothesis.settings(suppress_health_check=[hypothesis.HealthCheck(DIFFERING_EXECUTOR_ENUM)])

0 comments on commit 7b2b36a

Please sign in to comment.