diff options
author | xoviat <xoviat@users.noreply.github.com> | 2017-09-09 10:41:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-09 10:41:01 -0500 |
commit | 79c476e1a51b83ffc641d67769eb617e5e50cd2e (patch) | |
tree | 269fcbcce5e2063fa925e122928f2098a77933de /numpy/testing/tests/test_utils.py | |
parent | 66029c73ded90fd8695944253a0ce5d37c80b520 (diff) | |
download | numpy-79c476e1a51b83ffc641d67769eb617e5e50cd2e.tar.gz |
TST: utils: fix string continuation
Diffstat (limited to 'numpy/testing/tests/test_utils.py')
-rw-r--r-- | numpy/testing/tests/test_utils.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/numpy/testing/tests/test_utils.py b/numpy/testing/tests/test_utils.py index af1866033..286cd5285 100644 --- a/numpy/testing/tests/test_utils.py +++ b/numpy/testing/tests/test_utils.py @@ -13,7 +13,7 @@ from numpy.testing import ( assert_allclose, assert_approx_equal, assert_array_almost_equal_nulp, assert_array_max_ulp, clear_and_catch_warnings, suppress_warnings, run_module_suite, - assert_string_equal, assert_, tempdir, temppath + assert_string_equal, assert_, tempdir, temppath, ) import unittest @@ -269,11 +269,11 @@ class TestEqual(TestArrayEqual): except AssertionError as e: msg = str(e) 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" - " y: [repr failed for <matrix>: The truth value of an array " - "with more than one element is ambiguous. Use a.any() or " + msg_reference = "\nArrays are not equal\n\n" \ + "(shapes (2,), (1, 2) mismatch)\n" \ + " x: array([1, 2])\n" \ + " y: [repr failed for <matrix>: The truth value of an array " \ + "with more than one element is ambiguous. Use a.any() or " \ "a.all()]" try: self.assertEqual(msg, msg_reference) |