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

Skip to content

Commit d0aca0e

Browse files
committed
Add debug logging to figure out why unit test fails on Travis
1 parent 6209e3e commit d0aca0e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

numpy/core/src/multiarray/conversion_utils.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,9 +1116,19 @@ PyArray_TypestrConvert(int itemsize, int gentype)
11161116
* This should eventually be changed to an error in
11171117
* future NumPy versions.
11181118
*/
1119+
1120+
if (newtype == NPY_NOTYPE)
1121+
{
1122+
printf("XXX: gentype=%c\n", gentype);
1123+
}
11191124
if (newtype == NPY_NOTYPE) {
11201125
temp = PyArray_DescrFromType(gentype);
1126+
1127+
if (gentype == 'g')
1128+
printf("XXX: temp=%x\n", temp);
11211129
if (temp != NULL) {
1130+
if (gentype == 'g')
1131+
printf("XXX: elsize=%d itemsize=%d\n", temp->elsize, itemsize);
11221132
if (temp->elsize != itemsize) {
11231133
if (DEPRECATE(msg) < 0) {
11241134
Py_DECREF(temp);

0 commit comments

Comments
 (0)