summaryrefslogtreecommitdiff
path: root/numpy/testing/utils.py
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2014-08-25 21:26:25 +0200
committerJulian Taylor <jtaylor.debian@googlemail.com>2014-08-25 21:42:00 +0200
commit007b186a853c8ab37db62042376a9b2d66c18dcf (patch)
treef6004d34ed2db03a5b3a0b3c53b669408ab25eda /numpy/testing/utils.py
parent040d0408f4cdb0a472e654acd68c8e1c3fbd84f7 (diff)
downloadnumpy-007b186a853c8ab37db62042376a9b2d66c18dcf.tar.gz
BUG: set needs-init flag for unicode dtype
Python >= 3.3 does not like printing garbage unicode so printing np.empty(x, 'U') can throw UnicodeDecode errors. It is probably easier to just require initializing the dtype as a whole instead of trying to catching the decode error on all places where it might occur. Hopefully 0 is a valid code in all codecs. Closes gh-4994.
Diffstat (limited to 'numpy/testing/utils.py')
0 files changed, 0 insertions, 0 deletions