1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Author: Michael R. Crusoe <crusoe@debian.org>
Description: Workaround for 'Input generation is slow: Hypothesis only generated 4 valid inputs after 1.55 seconds.'
Forwarded: not-needed
Due to slow test runners.
--- python-xarray.orig/xarray/tests/test_strategies.py
+++ python-xarray/xarray/tests/test_strategies.py
@@ -10,7 +10,7 @@
import hypothesis.extra.numpy as npst
import hypothesis.strategies as st
-from hypothesis import given
+from hypothesis import given, settings, HealthCheck
from hypothesis.extra.array_api import make_strategies_namespace
from xarray.core.options import set_options
@@ -28,6 +28,7 @@
class TestDimensionNamesStrategy:
+ @settings(suppress_health_check=[HealthCheck.too_slow])
@given(dimension_names())
def test_types(self, dims):
assert isinstance(dims, list)
|