diff options
| author | Sebastian Berg <sebastianb@nvidia.com> | 2023-04-26 14:26:59 +0200 |
|---|---|---|
| committer | Sebastian Berg <sebastianb@nvidia.com> | 2023-04-26 14:57:52 +0200 |
| commit | ca3df13ea111d08ac1b365040b45c13117510ded (patch) | |
| tree | e998db7706f42ce7fbc6f6743511c39b0a186ea4 /numpy/core/tests | |
| parent | 9b62c3859f11094b664546e2f4a0fc92ed5c493c (diff) | |
| download | numpy-ca3df13ea111d08ac1b365040b45c13117510ded.tar.gz | |
MAINT: Fixup handling of subarray dtype in ufunc.resolve_dtypes
This is now OK to just support, we won't replace things and things
should work out for the most part (probably).
Diffstat (limited to 'numpy/core/tests')
| -rw-r--r-- | numpy/core/tests/test_ufunc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/tests/test_ufunc.py b/numpy/core/tests/test_ufunc.py index 71af2ccb7..f716e2104 100644 --- a/numpy/core/tests/test_ufunc.py +++ b/numpy/core/tests/test_ufunc.py @@ -2865,10 +2865,10 @@ class TestLowlevelAPIAccess: r = np.equal.resolve_dtypes((S0, S0, None)) assert r == (S0, S0, np.dtype(bool)) - # Subarray dtypes are weird and only really exist nested, they need - # the shift to full NEP 50 to be implemented nicely: + # Subarray dtypes are weird and may not work fully, we preserve them + # leading to a TypeError (currently no equal loop for void/structured) dts = np.dtype("10i") - with pytest.raises(NotImplementedError): + with pytest.raises(TypeError): np.equal.resolve_dtypes((dts, dts, None)) def test_resolve_dtypes_reduction(self): |
