diff options
author | Seth Troisi <sethtroisi@google.com> | 2020-01-21 13:46:27 -0800 |
---|---|---|
committer | Seth Troisi <sethtroisi@google.com> | 2020-01-21 13:46:27 -0800 |
commit | 6737f241454688f6ea59a883f6c6e3fe8eff8e8b (patch) | |
tree | c2441245dce49f6bd5ece6fbe4219d8c85655f20 /numpy/testing | |
parent | 19b96a1635ee93c487d69ab88ac5ea3a6a14e79e (diff) | |
download | numpy-6737f241454688f6ea59a883f6c6e3fe8eff8e8b.tar.gz |
MAINT: Python2 Cleanups
Diffstat (limited to 'numpy/testing')
-rw-r--r-- | numpy/testing/tests/test_utils.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/numpy/testing/tests/test_utils.py b/numpy/testing/tests/test_utils.py index 232ca0e83..913c67fc6 100644 --- a/numpy/testing/tests/test_utils.py +++ b/numpy/testing/tests/test_utils.py @@ -341,24 +341,6 @@ class TestEqual(TestArrayEqual): self._assert_func(x, x) self._test_not_equal(x, y) - def test_error_message(self): - with pytest.raises(AssertionError) as exc_info: - self._assert_func(np.array([1, 2]), np.array([[1, 2]])) - msg = str(exc_info.value) - msg2 = msg.replace("shapes (2L,), (1L, 2L)", "shapes (2,), (1, 2)") - msg_reference = textwrap.dedent("""\ - - Arrays are not equal - - (shapes (2,), (1, 2) mismatch) - x: array([1, 2]) - y: array([[1, 2]])""") - - try: - assert_equal(msg, msg_reference) - except AssertionError: - assert_equal(msg2, msg_reference) - def test_object(self): #gh-12942 import datetime |