Commit 8cef740
authored
Apply w/a for expected result in spacing test only on non-Intel NumPy (#2453)
The stock NumPy returns incorrect result for `numpy.spacing(-0.0)`,
while Intel NumPy returns the expected one (the same as dpnp also).
It might be the case when dpnp test is running with the stock NumPy.
Thus the PR add a conditional check to update expected result in
`TestSpacing::test_zeros` in case when non-Intel NumPy is used.
Previously the same logic was based on NumPy version, assuming Intel
NumPy has always `version < "2.0.0"`, but it is not the case anymore.1 parent fdf9ba7 commit 8cef740
2 files changed
+24
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
417 | 437 | | |
418 | 438 | | |
419 | 439 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
1751 | 1752 | | |
1752 | 1753 | | |
1753 | 1754 | | |
1754 | | - | |
| 1755 | + | |
1755 | 1756 | | |
1756 | 1757 | | |
1757 | | - | |
1758 | | - | |
| 1758 | + | |
| 1759 | + | |
1759 | 1760 | | |
1760 | 1761 | | |
1761 | 1762 | | |
| |||
0 commit comments