summaryrefslogtreecommitdiff
path: root/numpy/ma
diff options
context:
space:
mode:
authorStefan Winkler <mail@stefanwinkler.de>2017-10-02 19:06:11 +0200
committerStefan Winkler <mail@stefanwinkler.de>2017-10-03 11:39:43 +0200
commit80c624e2d986f3bb1544be46906ed1a198594f59 (patch)
tree8295925d5841ebbca038ce4569fbfd6650af8f82 /numpy/ma
parent04c43f177dcf156ab85118898d30870a38df70cc (diff)
downloadnumpy-80c624e2d986f3bb1544be46906ed1a198594f59.tar.gz
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.
Diffstat (limited to 'numpy/ma')
-rw-r--r--numpy/ma/tests/test_core.py4
1 files changed, 2 insertions, 2 deletions
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'
)