Leaklens

pytest-dev__pytest-7324

Pytest crashes the interpreter on debug build for 3.8+

Verdict: the issue points to the file or function that was changed (Tier B).

++def _ident_to_name(name: str) -> ast.expr: ++ if name in ("True", "False", "None") and sys.version_info >= (3, 4): ++ name = ast.literal_eval(name) ++ if sys.version_info >= (3, 8): ++ return ast.Constant(name) ++ else: ++ return ast.NameConstant(name) ++ else: ++ return ast.Name(name, ast.Load())

The two checks disagreed (stated fix vs. points to it); the lower reading shown: “++def _ident_to_name(name: str) -> ast.expr: ++ if name in ("True", "False", "None") and sys.version_info >= (3, 4): ++ name = ast.literal_eval(name)…”

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