Skip to content

API/TST: array-ness of desired and expected values does not match in several tests #271

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mdhaber opened this issue Apr 21, 2025 · 0 comments

Comments

@mdhaber
Copy link
Contributor

mdhaber commented Apr 21, 2025

Re gh-267; I'm making the default for check_scalar=False because of the following failures with check_scalar=True:

FAILED tests/test_funcs.py::TestCreateDiagonal::test_nd[numpy-shape1] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestCreateDiagonal::test_nd[numpy-shape6] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestCreateDiagonal::test_nd[numpy-shape8] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestCreateDiagonal::test_nd[numpy:readonly-shape1] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestCreateDiagonal::test_nd[numpy:readonly-shape6] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestCreateDiagonal::test_nd[numpy:readonly-shape8] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-0.0-0.0-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-0.0-0.0-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-1.0-1.0-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-1.0-1.0-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-1.0-2.0-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-1.0-2.0-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-1.0--1.0-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-1.0--1.0-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-100.0-101.0-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-100.0-101.0-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-0-0-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-0-0-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-1-1-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-1-1-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-1-2-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-1-2-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-1--1-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-1--1-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-(1+1j)-(1+1j)-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-(1+1j)-(1+1j)-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-(1+1j)-(1-1j)-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-(1+1j)-(1-1j)-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-inf-inf-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-inf-inf-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-inf-100.0-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-inf-100.0-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-inf--inf-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-inf--inf-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy--inf--inf-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy--inf--inf-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-nan-nan-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-nan-nan-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-nan-100.0-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-nan-100.0-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-1000000.0-1000001.0-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-1000000.0-1000001.0-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-1000000.0-1000100.0-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-1000000.0-1000100.0-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-1e-06-1.1e-06-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-1e-06-1.1e-06-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-1e-07-1.1e-07-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-1e-07-1.1e-07-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-(1000000+0j)-(1000000+1j)-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-(1000000+0j)-(1000000+1j)-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-(1000000+0j)-(1000000+100j)-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy-(1000000+0j)-(1000000+100j)-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-0.0-0.0-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-0.0-0.0-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-1.0-1.0-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-1.0-1.0-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-1.0-2.0-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-1.0-2.0-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-1.0--1.0-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-1.0--1.0-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-100.0-101.0-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-100.0-101.0-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-0-0-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-0-0-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-1-1-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-1-1-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-1-2-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-1-2-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-1--1-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-1--1-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-(1+1j)-(1+1j)-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-(1+1j)-(1+1j)-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-(1+1j)-(1-1j)-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-(1+1j)-(1-1j)-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-inf-inf-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-inf-inf-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-inf-100.0-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-inf-100.0-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-inf--inf-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-inf--inf-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly--inf--inf-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly--inf--inf-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-nan-nan-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-nan-nan-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-nan-100.0-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-nan-100.0-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-1000000.0-1000001.0-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-1000000.0-1000001.0-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-1000000.0-1000100.0-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-1000000.0-1000100.0-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-1e-06-1.1e-06-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-1e-06-1.1e-06-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-1e-07-1.1e-07-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-1e-07-1.1e-07-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-(1000000+0j)-(1000000+1j)-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-(1000000+0j)-(1000000+1j)-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-(1000000+0j)-(1000000+100j)-False] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_basic[numpy:readonly-(1000000+0j)-(1000000+100j)-True] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestIsClose::test_python_scalar[numpy] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestKron::test_python_scalar[numpy] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestKron::test_python_scalar[numpy:readonly] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestSinc::test_simple[numpy] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestSinc::test_simple[numpy:readonly] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestSinc::test_xp[numpy] - AssertionError: array-ness does not match:
FAILED tests/test_funcs.py::TestSinc::test_xp[numpy:readonly] - AssertionError: array-ness does not match:
FAILED tests/test_lazy.py::test_lazy_apply_kwargs[numpy-False] - AssertionError: array-ness does not match:
FAILED tests/test_lazy.py::test_lazy_apply_kwargs[numpy-True] - AssertionError: array-ness does not match:
FAILED tests/test_lazy.py::test_lazy_apply_kwargs[numpy:readonly-False] - AssertionError: array-ness does not match:
FAILED tests/test_lazy.py::test_lazy_apply_kwargs[numpy:readonly-True] - AssertionError: array-ness does not match:
=============== 109 failed, 2450 passed, 5101 skipped in 14.32s ================

This should be investigated, since the default value of check_scalar should probably be True.

@lucascolley lucascolley changed the title array-ness of desired and expected values does not match in several tests API/TST: array-ness of desired and expected values does not match in several tests Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants