From f0bf403639ceef5c09838037fe48a3029e81386d Mon Sep 17 00:00:00 2001 From: Jason Carver Date: Mon, 27 Aug 2018 17:25:22 -0700 Subject: [PATCH] suppress slow test warning --- tests/test_grammar.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_grammar.py b/tests/test_grammar.py index 8de94f8c..ff09cbef 100644 --- a/tests/test_grammar.py +++ b/tests/test_grammar.py @@ -1,8 +1,10 @@ import pytest from hypothesis import ( + HealthCheck, example, given, + settings, strategies as st, ) @@ -88,6 +90,7 @@ def test_parsing_with_parsimonious_grammar_and_node_visitor_works(type_str, expe @example('(int, bool)', 6) @example('(int,bool,)', 11) @example('(int,(address,uint256[][])', 27) +@settings(suppress_health_check=[HealthCheck.too_slow]) def test_parsing_invalid_type_str_causes_parse_error(type_str, error_col): if error_col is not None: pattern = r'Parse error at .* \(column {}\)'.format(error_col)