Skip to content

Commit 4ef4db7

Browse files
committed
disable deadline for unreliable timing test
1 parent dd8dd3c commit 4ef4db7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_flake8_trio.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,9 @@ def consume(iterator: Iterable[Any]):
643643

644644
@pytest.mark.fuzz()
645645
class TestFuzz(unittest.TestCase):
646-
@settings(max_examples=1_000, suppress_health_check=[HealthCheck.too_slow])
646+
@settings(
647+
max_examples=1_000, deadline=None, suppress_health_check=[HealthCheck.too_slow]
648+
)
647649
@given((from_grammar() | from_node()).map(ast.parse))
648650
def test_does_not_crash_on_any_valid_code(self, syntax_tree: ast.AST):
649651
# TODO: figure out how to get unittest to play along with pytest options

0 commit comments

Comments
 (0)