diff options
| author | mattip <matti.picus@gmail.com> | 2023-03-30 11:10:17 +0300 |
|---|---|---|
| committer | mattip <matti.picus@gmail.com> | 2023-03-30 11:10:17 +0300 |
| commit | 31e21768ef38a6b60050060a3bce836059469745 (patch) | |
| tree | 1bc2a19b49aca464f9f79821437dbc681e6d5b16 /numpy | |
| parent | 2538eb7e67ac7fed0bb7cf1a862194ffb9471a0e (diff) | |
| download | numpy-31e21768ef38a6b60050060a3bce836059469745.tar.gz | |
TST: add test for 5e6e5863 (issue gh-23492)
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/tests/test_regression.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py index fdd536bb9..141636034 100644 --- a/numpy/core/tests/test_regression.py +++ b/numpy/core/tests/test_regression.py @@ -1528,9 +1528,12 @@ class TestRegression: for y in dtypes: c = a.astype(y) try: - np.dot(b, c) + d = np.dot(b, c) except TypeError: failures.append((x, y)) + else: + if d != 0: + failures.append((x, y)) if failures: raise AssertionError("Failures: %r" % failures) |
