8000 Fix unicode repr object by jseabold · Pull Request #459 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

Fix unicode repr object #459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 3, 2012
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
TST: Add failing test for unicode array with object dtype
  • Loading branch information
jseabold committed Sep 25, 2012
commit 04fddc0a2d017eef03345f9b3afb0622c9d50584
4 changes: 4 additions & 0 deletions numpy/core/tests/test_arrayprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ def test_formatter_reset(self):
np.set_printoptions(formatter={'float_kind':None})
assert_equal(repr(x), "array([ 0., 1., 2.])")

def test_unicode_object_array():
x = np.array([u'\xe9'], dtype=object)
assert_equal(repr(x), "array([u'\\xe9'], dtype=object)")



if __name__ == "__main__":
Expand Down
0