diff options
| author | Matti Picus <matti.picus@gmail.com> | 2020-01-23 14:28:59 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-23 14:28:59 +1100 |
| commit | 388e8197e15403345950edc23ae5fc7a3cb0f644 (patch) | |
| tree | b2531ff0067ad6b60227fb7ebcec4421bffe28e6 /numpy/testing | |
| parent | 54f0f6e9aeff673551ccfa272fa82a27edb89552 (diff) | |
| parent | 6737f241454688f6ea59a883f6c6e3fe8eff8e8b (diff) | |
| download | numpy-388e8197e15403345950edc23ae5fc7a3cb0f644.tar.gz | |
Merge pull request #15379 from sethtroisi/misc_cleanups3
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 |
