Skip to content

Skip einsum test_out_0d for NumPy older than 2.4.5 - #3030

Merged
antonwolfy merged 1 commit into
masterfrom
skip-einsum-out-0d-old-numpy
Aug 17, 2026
Merged

Skip einsum test_out_0d for NumPy older than 2.4.5#3030
antonwolfy merged 1 commit into
masterfrom
skip-einsum-out-0d-old-numpy

Conversation

@antonwolfy

Copy link
Copy Markdown
Contributor

This guards TestEinsum.test_out_0d with @testing.with_requires("numpy>=2.4.5").

The test compares dpnp.einsum against a reference numpy.einsum call that uses a 0-d out array with optimize="optimal". That reference behavior only matches on NumPy 2.4.5 and newer, so the test is skipped on older NumPy versions to avoid spurious failures.

The test was introduced in #2987.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?

The reference numpy.einsum call with a 0-d out array and
optimize="optimal" only behaves as expected starting with
NumPy 2.4.5, so guard test_out_0d with the corresponding
version requirement.
@antonwolfy antonwolfy self-assigned this Aug 17, 2026
@antonwolfy antonwolfy added this to the 0.21.0 release milestone Aug 17, 2026
@antonwolfy
antonwolfy marked this pull request as ready for review August 17, 2026 10:11
@github-actions

github-actions Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

View rendered docs @ https://intelpython.github.io/dpnp/index.html

@github-actions

Copy link
Copy Markdown
Contributor

Array API standard conformance tests for dpnp=0.21.0dev4=py314h509198e_7 ran successfully.
Passed: 1377
Failed: 0
Skipped: 5

@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 78.467%. remained the same — skip-einsum-out-0d-old-numpy into master

@antonwolfy
antonwolfy merged commit 2191b84 into master Aug 17, 2026
114 of 119 checks passed
@antonwolfy
antonwolfy deleted the skip-einsum-out-0d-old-numpy branch August 17, 2026 18:06
github-actions Bot added a commit that referenced this pull request Aug 17, 2026
This guards `TestEinsum.test_out_0d` with
`@testing.with_requires("numpy>=2.4.5")`.

The test compares `dpnp.einsum` against a reference `numpy.einsum` call
that uses a 0-d `out` array with `optimize="optimal"`. That reference
behavior only matches on NumPy 2.4.5 and newer, so the test is skipped
on older NumPy versions to avoid spurious failures.

The test was introduced in #2987. 2191b84
ndgrigorian pushed a commit that referenced this pull request Aug 17, 2026
This guards `TestEinsum.test_out_0d` with
`@testing.with_requires("numpy>=2.4.5")`.

The test compares `dpnp.einsum` against a reference `numpy.einsum` call
that uses a 0-d `out` array with `optimize="optimal"`. That reference
behavior only matches on NumPy 2.4.5 and newer, so the test is skipped
on older NumPy versions to avoid spurious failures.

The test was introduced in #2987.
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.

3 participants