API/TST: array-ness of desired and expected values does not match in several tests
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- numpy, python
- Ambito
- backend-api-design, testing
Direzione di ricerca
Inizia da tests/test_funcs.py, in particolare TestCreateDiagonal::test_nd e TestIsClose::test_basic, e riproduci i fallimenti elencati con check_scalar=True. Traccia come vengono costruiti i valori desiderati e attesi per i casi NumPy e di sola lettura; il lavoro è terminato quando le asserzioni sulla natura di array passano per i test interessati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 33
- Fork
- 32
- Merge medio
- 5h 58m
- PR unite (30g)
- 47
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di data-apis/array-api-extra
-
ENH: new function `replace` Apertaenhancement new function
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
data-apis/array-api-extra#992 · 1 commento ·
-
testing
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
data-apis/array-api-extra#901 · 3 commenti ·
-
testing upstream issue
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
data-apis/array-api-extra#900 · 8 commenti ·
-
blocked testing xpx.testing
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
data-apis/array-api-extra#833 · 1 commento · 1 reazione ·
-
enhancement help wanted
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
data-apis/array-api-extra#811 · 1 commento · 1 reazione ·
Tutte le issue di data-apis/array-api-extra
Issue simili
-
area: harness bug status: needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Human-Agent-Society/reef#625 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
learningequality/kolibri#15351 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Name consistency Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
eellak/triplestore#65 · 1 commento ·