Skip to content

Commit

Permalink
Add Hypotheses settings to ignore too_slow warning (#148)
Browse files Browse the repository at this point in the history
- We sometimes get to slow
- This is probably due to VM resources

Fixes #147
  • Loading branch information
cooperlees authored Nov 23, 2020
1 parent 43ff775 commit fa82ac5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_bugbear.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import subprocess
import unittest

from hypothesis import given
from hypothesis import HealthCheck, given, settings
from hypothesmith import from_grammar

from bugbear import BugBearChecker, BugBearVisitor
Expand Down Expand Up @@ -298,6 +298,7 @@ def test_selfclean_test_bugbear(self):


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

0 comments on commit fa82ac5

Please sign in to comment.