diff options
author | Jack J. Woehr <jwoehr@softwoehr.com> | 2019-10-19 14:46:18 -0600 |
---|---|---|
committer | Jack J. Woehr <jwoehr@softwoehr.com> | 2019-10-19 14:46:18 -0600 |
commit | 0906162fd49f57679009cce791fa4e58ad905c6a (patch) | |
tree | 4f549c4ab6e1234eeb26d82014889d7ba9bbdaaa /numpy/core/tests | |
parent | d9ecdea76019ae3d744fb557779a8db0ef4372a3 (diff) | |
download | numpy-0906162fd49f57679009cce791fa4e58ad905c6a.tar.gz |
added test case test_einsum_failed_on_p9_and_s390x(self)
Diffstat (limited to 'numpy/core/tests')
-rw-r--r-- | numpy/core/tests/test_einsum.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/core/tests/test_einsum.py b/numpy/core/tests/test_einsum.py index cfeeb8a90..9d6b39407 100644 --- a/numpy/core/tests/test_einsum.py +++ b/numpy/core/tests/test_einsum.py @@ -700,6 +700,12 @@ class TestEinsum(object): y2 = x[idx[:, None], idx[:, None], idx, idx] assert_equal(y1, y2) + def test_einsum_failed_on_p9_and_s390x(self): + # Issues gh-14692 and gh-12689 + # Bug with signed vs unsigned char errored on power9 and s390x Linux + tensor = np.random.random_sample((10, 10, 10, 10)) + print(np.einsum('ijij->', tensor)) + def test_einsum_all_contig_non_contig_output(self): # Issue gh-5907, tests that the all contiguous special case # actually checks the contiguity of the output |