diff options
author | Matti Picus <matti.picus@gmail.com> | 2022-05-19 20:00:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-19 20:00:27 +0300 |
commit | db481babcfa7ebc70833e77985858e9295a3135b (patch) | |
tree | 12d0ddc95df5688213117cfb9ded9161979a7d16 /numpy/testing | |
parent | 1cedba6501848a915ec9076108e319235ded7689 (diff) | |
parent | 64e3c5c519bcf3684c19037e81b62f2245420a76 (diff) | |
download | numpy-db481babcfa7ebc70833e77985858e9295a3135b.tar.gz |
Merge pull request #19226 from seberg/fix-void-cast-safety-promotion-and-comparison
API: Fix structured dtype cast-safety, promotion, and comparison
Diffstat (limited to 'numpy/testing')
-rw-r--r-- | numpy/testing/tests/test_utils.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/numpy/testing/tests/test_utils.py b/numpy/testing/tests/test_utils.py index 1aaa8f559..4026a7a14 100644 --- a/numpy/testing/tests/test_utils.py +++ b/numpy/testing/tests/test_utils.py @@ -151,14 +151,13 @@ class TestArrayEqual(_GenericTest): self._test_equal(a, b) - c = np.empty(2, [('floupipi', float), ('floupa', float)]) + c = np.empty(2, [('floupipi', float), + ('floupi', float), ('floupa', float)]) c['floupipi'] = a['floupi'].copy() c['floupa'] = a['floupa'].copy() - with suppress_warnings() as sup: - l = sup.record(FutureWarning, message="elementwise == ") + with pytest.raises(TypeError): self._test_not_equal(c, b) - assert_equal(len(l), 1) def test_masked_nan_inf(self): # Regression test for gh-11121 |