pytest-dev__pytest-10051
caplog.get_records and caplog.clear conflict
Verdict: the issue points to the file or function that was changed (Tier B).
During test set up it is [set to the same list](https://github.com/pytest-dev/pytest/blob/28e8c8582ea947704655a3c3f2d57184831336fd/src/_pytest/logging.py#L699) as `caplog.records`, but the latter gets [replaced rather than cleared](https://github.com/pytest-dev/pytest/blob/28e8c8582ea947704655a3c3f2d57184831336fd/src/_pytest/logging.py#L345) in `caplog.clear()`, which diverges the two objects.
The two checks disagreed (stated fix vs. points to it); the lower reading shown: “During test set up it is [set to the same list](https://github.com/pytest-dev/pytest/blob/28e8c8582ea947704655a3c3f2d57184831336fd/src/_pytest/loggin…”
All 500 SWE-bench Verified tasks · more pytest-dev/pytest tasks · How the check works