From 84fdfb3c958bcff8c97aa17ab276ce7388fe7d48 Mon Sep 17 00:00:00 2001 From: xoviat Date: Sat, 9 Sep 2017 10:21:11 -0500 Subject: TST: util: fix test_error_message use the correct replace() order --- numpy/testing/tests/test_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/testing') 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" -- cgit v1.2.1