Leaklens

pytest-dev__pytest-6202

'.[' replaced with '[' in the headline shown of the test report

Verdict: the fix is stated in the issue (Tier A).

Since the yield tests were removed in pytest 4.0, this line of code can be replaced with `return s` safely.

The text states the fix: “This line of code `return s.replace(".[", "[")` causes the problem. We should replace it with `return s`.”

All SWE-bench Verified tasks · more pytest-dev/pytest tasks · How the check works