From 80c624e2d986f3bb1544be46906ed1a198594f59 Mon Sep 17 00:00:00 2001 From: Stefan Winkler Date: Mon, 2 Oct 2017 19:06:11 +0200 Subject: BUG: fix stray comma in _array2string _array2string unconditionally added a comma after the '...' that are inserted for arrays exceeding the size threshold. Instead, add the separator character in _formatArray. Fixes #9777. --- numpy/ma/tests/test_core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/ma') diff --git a/numpy/ma/tests/test_core.py b/numpy/ma/tests/test_core.py index 41c56ca1e..fe0271580 100644 --- a/numpy/ma/tests/test_core.py +++ b/numpy/ma/tests/test_core.py @@ -495,8 +495,8 @@ class TestMaskedArray(object): a[1:50] = np.ma.masked assert_equal( repr(a), - 'masked_array(data = [0 -- -- ..., 1997 1998 1999],\n' - ' mask = [False True True ..., False False False],\n' + 'masked_array(data = [0 -- -- ... 1997 1998 1999],\n' + ' mask = [False True True ... False False False],\n' ' fill_value = 999999)\n' ) -- cgit v1.2.1