Improve traceback printing for MultipleFailures
#3116
Labels
legibility
make errors helpful and Hypothesis grokable
MultipleFailures
#3116
When Hypothesis reports multiple failures, we print the tracebacks of each error we found and then raise a
MultipleFailuresexception. However, it would be nice to improve these printed tracebacks!pytest, we should usepytest's traceback-printing logic - and respect the--tbargument for short, native, long, skipped (etc) formatting.richis installed we can use that like Let's get rich hynek/structlog#349 (and it's already an optional dependency forhypothesis[cli], to syntax-highlight ghostwritten code)better-exceptionslike Add support for better-exceptions hynek/structlog#330See also python/cpython#28569 (comment): in Python 3.11 we'll want to work with
ExceptionGroup, but there are some open questions about how to add our extra information to the display (minimal example, targets, error explanation, etc) that are still up for discussion in bugs.python.org/issue45607The text was updated successfully, but these errors were encountered: