This backports #444.
ENH: Allow objects to use the array interface without specifying data
BUG: Make shape check for special case a bit stricter
TST: Add test for special case in array interface
BUG: Make sure empty shapes are disallowed when data is specified
BUG: Fixes for Python 3.x
BUG: Handle scalars correctly.
ENH: Assume object is scalar if no shape and data attribute are given
BUG: Disallow shapesize > 1 when coercing scalar to array
TST: Add more tests.
The tests are failing... But the place where they fail is in numpy/core/tests/test_iterator.py which does not exist in this branch. This would suggest that old numpy is being tested here?
Yes, that is what it looks like. That is to say, it is a left over file from the pre-existing 1.6.2 installation in the virtual environment.
But the funniest thing is that now Travis shows that everything passed!! So maybe the problem is that the "Travis building" link was wrong... Now it seems to be working. Anyway. I am merging this.