Skip to content

[PR #15285/4b3bb3cc backport][9.2.x] Fix pytest.approx regression with JAX arrays - #15301

Merged
bluetech merged 1 commit into
9.2.xfrom
patchback/backports/9.2.x/4b3bb3cca4bb53ffe38473b7f29d832d42a4177b/pr-15285
Oct 30, 2026
Merged

bluetech merged 1 commit into
9.2.xfrom
patchback/backports/9.2.x/4b3bb3cca4bb53ffe38473b7f29d832d42a4177b/pr-15285

Conversation

@patchback

@patchback patchback Bot commented Oct 30, 2026

Copy link
Copy Markdown

This is a backport of PR #15285 as merged into main (4b3bb3c).

Closes #15284.

For simplicity, I've decided to just catch the NotImplementedError raised by jax.Array when trying to access .flat; other implementations are possible but they would change the logic/heuristic for other types too.

Fix `pytest.approx` regression with JAX arrays

(cherry picked from commit 4b3bb3c)
@bluetech
bluetech enabled auto-merge October 30, 2026 09:29
@bluetech
bluetech merged commit 35dd0f3 into 9.2.x Oct 30, 2026
35 of 36 checks passed
@bluetech
bluetech deleted the patchback/backports/9.2.x/4b3bb3cca4bb53ffe38473b7f29d832d42a4177b/pr-15285 branch October 30, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant