pytest-dev__pytest-5631
ValueError when collecting tests that patch an array
Verdict: the issue points to the file or function that was changed (Tier B).
when using @patch like: @patch(target='XXXXXX', new=np.array([-5.5, 3.0])), p.new is an array and the check: "p.new in sentinels" returns an array of booleans instead of a boolean which causes the ValueError.
The two checks disagreed (stated fix vs. points to it); the lower reading shown: “when using @patch like: @patch(target='XXXXXX', new=np.array([-5.5, 3.0])), p.new is an array and the check: "p.new in sentinels" returns an array of…”
All SWE-bench Verified tasks · more pytest-dev/pytest tasks · How the check works