summaryrefslogtreecommitdiff
path: root/numpy/ma/tests
diff options
context:
space:
mode:
authormdroe <mdroe@localhost>2009-10-14 19:15:43 +0000
committermdroe <mdroe@localhost>2009-10-14 19:15:43 +0000
commitbbe934c2cf3fb3faf7e6ff798b7518f9637917a1 (patch)
tree7106de0448df5fa0b368af53a606c8591c867383 /numpy/ma/tests
parent29f9857bc82e3bc2a44afe4b8267df492d6bd7f8 (diff)
downloadnumpy-bbe934c2cf3fb3faf7e6ff798b7518f9637917a1.tar.gz
Fix #1256: repr of masked array crashes with Unicode elements
Diffstat (limited to 'numpy/ma/tests')
-rw-r--r--numpy/ma/tests/test_regression.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/ma/tests/test_regression.py b/numpy/ma/tests/test_regression.py
index 2294a83d1..4fe26367f 100644
--- a/numpy/ma/tests/test_regression.py
+++ b/numpy/ma/tests/test_regression.py
@@ -33,3 +33,7 @@ class TestRegression(TestCase):
"""Ticket #271"""
np.ma.array([1],mask=False).repeat(10)
+ def test_masked_array_repr_unicode(self):
+ """Ticket #1256"""
+ repr(np.ma.array(u"Unicode"))
+