Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f5d883c

Browse files
jseaboldcertik
authored andcommitted
TST: Add failing test for unicode array with object dtype
1 parent 63bb787 commit f5d883c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

numpy/core/tests/test_arrayprint.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ def test_formatter_reset(self):
147147
np.set_printoptions(formatter={'float_kind':None})
148148
assert_equal(repr(x), "array([ 0., 1., 2.])")
149149

150+
def test_unicode_object_array():
151+
x = np.array([u'\xe9'], dtype=object)
152+
assert_equal(repr(x), "array([u'\\xe9'], dtype=object)")
153+
150154

151155

152156
if __name__ == "__main__":

0 commit comments

Comments
 (0)