We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4725b0 commit 2c4588cCopy full SHA for 2c4588c
hypothesis-python/src/hypothesis/errors.py
@@ -243,7 +243,9 @@ class DeadlineExceeded(_Trimmable):
243
def __init__(self, runtime: timedelta, deadline: timedelta) -> None:
244
super().__init__(
245
f"Test took {runtime.total_seconds() * 1000:.2f}ms, which exceeds "
246
- f"the deadline of {deadline.total_seconds() * 1000:.2f}ms"
+ f"the deadline of {deadline.total_seconds() * 1000:.2f}ms. If you "
247
+ "expect test cases to take this long, you can use @settings(deadline=...) "
248
+ "to either set a higher deadline, or to disable it with deadline=None."
249
)
250
self.runtime = runtime
251
self.deadline = deadline
0 commit comments