From 4ef4db7dffb9ff145235ada27c5ad9cd389bc17c Mon Sep 17 00:00:00 2001 From: jakkdl Date: Wed, 19 Apr 2023 21:20:53 +0200 Subject: [PATCH] disable deadline for unreliable timing test --- tests/test_flake8_trio.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_flake8_trio.py b/tests/test_flake8_trio.py index e53c6ab5..62320384 100644 --- a/tests/test_flake8_trio.py +++ b/tests/test_flake8_trio.py @@ -643,7 +643,9 @@ def consume(iterator: Iterable[Any]): @pytest.mark.fuzz() class TestFuzz(unittest.TestCase): - @settings(max_examples=1_000, suppress_health_check=[HealthCheck.too_slow]) + @settings( + max_examples=1_000, deadline=None, suppress_health_check=[HealthCheck.too_slow] + ) @given((from_grammar() | from_node()).map(ast.parse)) def test_does_not_crash_on_any_valid_code(self, syntax_tree: ast.AST): # TODO: figure out how to get unittest to play along with pytest options