Skip to content

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

Open
@mdhaber

Description

@mdhaber

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions