API/TST: array-ness of desired and expected values does not match in several tests
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- numpy, python
- Área
- backend-api-design, testing
Línea de trabajo
Empieza por tests/test_funcs.py, en particular TestCreateDiagonal::test_nd y TestIsClose::test_basic, y reproduce los fallos indicados con check_scalar=True. Rastrea cómo se construyen los valores deseados y esperados para los casos de NumPy y de solo lectura; se considera terminado cuando pasan las aserciones de condición de array para las pruebas afectadas.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 33
- Forks
- 32
- Merge medio
- 5 h 58 min
- PR fusionados (30 d)
- 47
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de data-apis/array-api-extra
-
ENH: new function `replace` Abiertoenhancement new function
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
data-apis/array-api-extra#992 · 1 comentario ·
-
testing
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
data-apis/array-api-extra#901 · 3 comentarios ·
-
testing upstream issue
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
data-apis/array-api-extra#900 · 8 comentarios ·
-
TST: non-default device testing Abiertoblocked testing xpx.testing
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
data-apis/array-api-extra#833 · 1 comentario · 1 reacción ·
-
enhancement help wanted
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
data-apis/array-api-extra#811 · 1 comentario · 1 reacción ·
Todos los issues de data-apis/array-api-extra
Issues similares
-
[Bug] reef-hermes tells me to resume with hermes --resume, which does not work from my shell Abiertoarea: harness bug status: needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Human-Agent-Society/reef#625 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
learningequality/kolibri#15351 · 2 comentarios ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Name consistency Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
eellak/triplestore#65 · 1 comentario ·