Hook to insert custom failure explanation
(op, left, right)
| 203 | |
| 204 | |
| 205 | def pytest_assertrepr_compare(op, left, right): # noqa: ARG001 |
| 206 | """Hook to insert custom failure explanation""" |
| 207 | if hasattr(left, "explanation"): |
| 208 | return left.explanation |
| 209 | return None |
| 210 | |
| 211 | |
| 212 | # Number of times we think repeatedly collecting garbage might do anything. |