diff options
author | Jay Bourque <jay.bourque@continuum.io> | 2012-12-21 13:39:19 -0600 |
---|---|---|
committer | Ondřej Čertík <ondrej.certik@gmail.com> | 2012-12-26 09:18:40 -0800 |
commit | 0f5afde4b719d622f4530c707d9577eea6c131fd (patch) | |
tree | a026312395390422d36dbb28c41025fdc592d339 | |
parent | 83de7cd1810f38a845d7e281943d46c5e225633b (diff) | |
download | numpy-0f5afde4b719d622f4530c707d9577eea6c131fd.tar.gz |
Add debug logging to figure out why unit test fails on Travis
-rw-r--r-- | numpy/core/src/multiarray/conversion_utils.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/numpy/core/src/multiarray/conversion_utils.c b/numpy/core/src/multiarray/conversion_utils.c index b05314a0a..7adf6ae20 100644 --- a/numpy/core/src/multiarray/conversion_utils.c +++ b/numpy/core/src/multiarray/conversion_utils.c @@ -1116,9 +1116,19 @@ PyArray_TypestrConvert(int itemsize, int gentype) * This should eventually be changed to an error in * future NumPy versions. */ + + if (newtype == NPY_NOTYPE) + { + printf("XXX: gentype=%c\n", gentype); + } if (newtype == NPY_NOTYPE) { temp = PyArray_DescrFromType(gentype); + + if (gentype == 'g') + printf("XXX: temp=%x\n", temp); if (temp != NULL) { + if (gentype == 'g') + printf("XXX: elsize=%d itemsize=%d\n", temp->elsize, itemsize); if (temp->elsize != itemsize) { if (DEPRECATE(msg) < 0) { Py_DECREF(temp); |