Skip to content

Commit fa82ac5

Browse files
authored
Add Hypotheses settings to ignore too_slow warning (#148)
- We sometimes get to slow - This is probably due to VM resources Fixes #147
1 parent 43ff775 commit fa82ac5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_bugbear.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import subprocess
66
import unittest
77

8-
from hypothesis import given
8+
from hypothesis import HealthCheck, given, settings
99
from hypothesmith import from_grammar
1010

1111
from bugbear import BugBearChecker, BugBearVisitor
@@ -298,6 +298,7 @@ def test_selfclean_test_bugbear(self):
298298

299299

300300
class TestFuzz(unittest.TestCase):
301+
@settings(suppress_health_check=[HealthCheck.too_slow])
301302
@given(from_grammar().map(ast.parse))
302303
def test_does_not_crash_on_any_valid_code(self, syntax_tree):
303304
# Given any syntatically-valid source code, flake8-bugbear should

0 commit comments

Comments
 (0)