diff options
author | xoviat <xoviat@users.noreply.github.com> | 2017-09-09 10:21:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-09 10:21:11 -0500 |
commit | 84fdfb3c958bcff8c97aa17ab276ce7388fe7d48 (patch) | |
tree | 36104f78ce87edf1cdfbc0a955b0a68d3a61a9df | |
parent | 167ca98afdc8404cf235ebda930ebf5a8aaedd55 (diff) | |
download | numpy-84fdfb3c958bcff8c97aa17ab276ce7388fe7d48.tar.gz |
TST: util: fix test_error_message
use the correct replace() order
-rw-r--r-- | numpy/testing/tests/test_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/testing/tests/test_utils.py b/numpy/testing/tests/test_utils.py index 88439bff2..0069da916 100644 --- a/numpy/testing/tests/test_utils.py +++ b/numpy/testing/tests/test_utils.py @@ -268,7 +268,7 @@ class TestEqual(TestArrayEqual): self._assert_func(np.array([1, 2]), np.matrix([1, 2])) except AssertionError as e: msg = str(e) - msg2 = msg.replace("shapes (2,), (1, 2)", "shapes (2L,), (1L, 2L)") + msg2 = msg.replace("shapes (2L,), (1L, 2L)", "shapes (2,), (1, 2)") msg_reference = "\nArrays are not equal\n\n" "(shapes (2,), (1, 2) mismatch)\n" " x: array([1, 2])\n" |