forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-python/attrs: suppress too_slow health check on test_recurse_prop…
…erty Bug: https://bugs.gentoo.org/608570 Package-Manager: Portage-2.3.3_p56, Repoman-2.3.1_p49
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/tests/test_funcs.py b/tests/test_funcs.py | ||
index 36969c7..00da655 100644 | ||
--- a/tests/test_funcs.py | ||
+++ b/tests/test_funcs.py | ||
@@ -8,7 +8,7 @@ from collections import OrderedDict, Sequence, Mapping | ||
|
||
import pytest | ||
|
||
-from hypothesis import assume, given, strategies as st | ||
+from hypothesis import assume, given, strategies as st, settings, HealthCheck | ||
|
||
from .utils import simple_classes, nested_classes | ||
|
||
@@ -57,6 +57,7 @@ class TestAsDict(object): | ||
), dict_factory=dict_class) | ||
|
||
@given(nested_classes, st.sampled_from(MAPPING_TYPES)) | ||
+ @settings(suppress_health_check=[HealthCheck.too_slow]) | ||
def test_recurse_property(self, cls, dict_class): | ||
""" | ||
Property tests for recursive asdict. |